oops
This commit is contained in:
parent
38e03bcc88
commit
b978ba6bc0
1 changed files with 4 additions and 3 deletions
|
@ -86,8 +86,9 @@ 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
|
||||||
|
: DateTime->now( time_zone => 'Europe/Berlin' );
|
||||||
->subtract( minutes => $opt{lookbehind} );
|
->subtract( minutes => $opt{lookbehind} );
|
||||||
return Travel::Status::DE::HAFAS->new_p(
|
return Travel::Status::DE::HAFAS->new_p(
|
||||||
station => $opt{eva},
|
station => $opt{eva},
|
||||||
|
|
Loading…
Reference in a new issue