From 6e42d1dc29ac3efbf06854c8fafd059bca5d99c4 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 31 Mar 2024 21:22:50 +0200 Subject: lesson learned: do not deploy from easterhegg --- lib/Travelynx/Helper/HAFAS.pm | 10 +++++----- 1 file 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, -- cgit v1.2.3