Skip to content

Commit

Permalink
lesson learned: do not deploy from easterhegg
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Mar 31, 2024
1 parent b978ba6 commit 6e42d1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Travelynx/Helper/HAFAS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6e42d1d

Please sign in to comment.