diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travelynx/Helper/HAFAS.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index e0f4706..38bed56 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -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, |