diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-03 13:58:48 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-03 13:58:48 +0200 |
commit | c9e5bfae620c3df002c286b1463a2838395797fd (patch) | |
tree | a675aa63349fb2d41258c60a2410c4087806e772 /lib/Travelynx/Helper/HAFAS.pm | |
parent | 64e0ee57683389587f5ff9dc282318a85014ccd5 (diff) |
store tz_offset in route data if present
Diffstat (limited to 'lib/Travelynx/Helper/HAFAS.pm')
-rw-r--r-- | lib/Travelynx/Helper/HAFAS.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index 38bed56..2bab8dc 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -236,6 +236,9 @@ sub get_route_timestamps_p { dep_delay => $stop->dep_delay, load => $stop->load }; + if ( $stop->tz_offset ) { + $ret->{$name}{tz_offset} = $stop->tz_offset; + } if ( ( $stop->arr_cancelled or not $stop->sched_arr ) and ( $stop->dep_cancelled or not $stop->sched_dep ) ) { |