This commit is contained in:
Birte Kristina Friesel 2024-03-31 21:21:59 +02:00
parent 38e03bcc88
commit b978ba6bc0
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -86,9 +86,10 @@ sub get_departures_p {
my ( $self, %opt ) = @_; my ( $self, %opt ) = @_;
my $when my $when
= ( $opt{timestamp}->clone = $opt{timestamp}
// DateTime->now( time_zone => 'Europe/Berlin' ) ) ? $opt{timestamp}->clone
->subtract( minutes => $opt{lookbehind} ); : DateTime->now( time_zone => 'Europe/Berlin' );
->subtract( minutes => $opt{lookbehind} );
return Travel::Status::DE::HAFAS->new_p( return Travel::Status::DE::HAFAS->new_p(
station => $opt{eva}, station => $opt{eva},
datetime => $when, datetime => $when,