diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 14:40:15 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 14:40:15 +0200 |
commit | fb76c6eb57c20177eca19d6fe03a573f378654f8 (patch) | |
tree | e5d05b7e2e93600c50d99c6c99dc7b590db150bc /lib/Travel/Status/DE/HAFAS | |
parent | 748fbc7695bafd467bf8e61d160971bcf5139d15 (diff) |
Use service-specific time zones if ≠ Europe/Berlin
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index 14530ed..223dc13 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -94,7 +94,8 @@ sub new { } $datetime_ref = DateTime::Format::Strptime->new( pattern => $parse_fmt, - time_zone => 'Europe/Berlin' + time_zone => $hafas->get_active_service->{time_zone} + // 'Europe/Berlin' )->parse_datetime($date_ref); } |