diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-02-21 19:22:22 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-02-21 19:22:22 +0100 |
commit | 66941583086ecf5f01df9b3262a39b904aefe68e (patch) | |
tree | 75577461acfa2d28296d9ef938b678f3d7e5785f | |
parent | 1df3b6f96e93ebd520deccaed41dd9418e50d11f (diff) |
dbris-m: formation request: use $now, handle -m
-rwxr-xr-x | bin/dbris-m | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/dbris-m b/bin/dbris-m index b8e9378..c210017 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -188,14 +188,13 @@ if ($mots) { } if ( $opt{station} and $train_type and $train_no ) { - my $dt = DateTime->now( time_zone => 'Europe/Berlin' ) - ->subtract( minutes => 15 ); my $status = Travel::Status::DE::DBRIS->new( cache => $cache, - datetime => $opt{datetime} // $dt, + datetime => $opt{datetime}, station => $opt{station}, developer_mode => $developer_mode, - modes_of_transit => [qw[ICE EC_IC IR REGIONAL SBAHN]], + modes_of_transit => $opt{modes_of_transit} + // [qw[ICE EC_IC IR REGIONAL SBAHN]], ); my $found = 0; for my $train ( $status->results ) { |