mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
lesson learned: do not deploy from easterhegg
This commit is contained in:
parent
b978ba6bc0
commit
6e42d1dc29
1 changed files with 5 additions and 5 deletions
|
@ -85,11 +85,11 @@ sub get_json_p {
|
|||
sub get_departures_p {
|
||||
my ( $self, %opt ) = @_;
|
||||
|
||||
my $when
|
||||
= $opt{timestamp}
|
||||
? $opt{timestamp}->clone
|
||||
: DateTime->now( time_zone => 'Europe/Berlin' );
|
||||
->subtract( minutes => $opt{lookbehind} );
|
||||
my $when = (
|
||||
$opt{timestamp}
|
||||
? $opt{timestamp}->clone
|
||||
: DateTime->now( time_zone => 'Europe/Berlin' )
|
||||
)->subtract( minutes => $opt{lookbehind} );
|
||||
return Travel::Status::DE::HAFAS->new_p(
|
||||
station => $opt{eva},
|
||||
datetime => $when,
|
||||
|
|
Loading…
Reference in a new issue