diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 16:43:10 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 16:43:10 +0200 |
commit | ac3d3d1e6acb3568f3d059f073ae68e1274fdaf7 (patch) | |
tree | 23f69c12da2a31725a2b2082d398ee3dbb68af72 /lib/Travel | |
parent | b1a17e8d1776ddaf3bcfa3a4d371ac47533d01ac (diff) |
store tz offset as documented
Diffstat (limited to 'lib/Travel')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Stop.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Stop.pm b/lib/Travel/Status/DE/HAFAS/Stop.pm index cb17653..0a1f44f 100644 --- a/lib/Travel/Status/DE/HAFAS/Stop.pm +++ b/lib/Travel/Status/DE/HAFAS/Stop.pm @@ -166,8 +166,8 @@ sub handle_day_change { } if ( defined $offset and $offset != $timestr->offset / 60 ) { - $self->{tz_offset} = $timestr->offset / 60 - $offset; - $timestr->add( minutes => $self->{tz_offset} ); + $self->{tz_offset} = $offset - $timestr->offset / 60; + $timestr->subtract( minutes => $self->{tz_offset} ); } return $timestr; |