From ce0c9c2ccbcb461469d2f8cceca4c6bce474cc2e Mon Sep 17 00:00:00 2001 From: networkException Date: Thu, 19 Jun 2025 01:33:40 +0200 Subject: MOTIS: Normalize timestamps to Europe/Berlin --- lib/Travelynx/Helper/MOTIS.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Travelynx/Helper/MOTIS.pm') diff --git a/lib/Travelynx/Helper/MOTIS.pm b/lib/Travelynx/Helper/MOTIS.pm index d4e1777..df79385 100644 --- a/lib/Travelynx/Helper/MOTIS.pm +++ b/lib/Travelynx/Helper/MOTIS.pm @@ -53,6 +53,7 @@ sub get_station_by_query_p { cache => $self->{cache}, promise => 'Mojo::Promise', user_agent => Mojo::UserAgent->new, + time_zone => 'Europe/Berlin', lwp_options => { timeout => 10, agent => $self->{header}{'User-Agent'}, @@ -101,6 +102,7 @@ sub get_departures_p { cache => $self->{cache}, promise => 'Mojo::Promise', user_agent => Mojo::UserAgent->new, + time_zone => 'Europe/Berlin', lwp_options => { timeout => 10, agent => $self->{header}{'User-Agent'}, @@ -125,6 +127,7 @@ sub get_trip_p { cache => $self->{realtime_cache}, promise => 'Mojo::Promise', user_agent => Mojo::UserAgent->new, + time_zone => 'Europe/Berlin', service => $opt{service}, trip_id => $opt{trip_id}, -- cgit v1.2.3