summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-31 21:22:50 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-31 21:22:50 +0200
commit6e42d1dc29ac3efbf06854c8fafd059bca5d99c4 (patch)
tree8e7746eff3deb835a5647ccd9dbf96e12278c106 /lib
parentb978ba6bc0c1f429f02990c2439977b2bd4fbe42 (diff)
lesson learned: do not deploy from easterhegg2.6.3
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Helper/HAFAS.pm10
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,