summaryrefslogtreecommitdiff
path: root/lib/Travel/Status
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 16:43:10 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 16:43:10 +0200
commitac3d3d1e6acb3568f3d059f073ae68e1274fdaf7 (patch)
tree23f69c12da2a31725a2b2082d398ee3dbb68af72 /lib/Travel/Status
parentb1a17e8d1776ddaf3bcfa3a4d371ac47533d01ac (diff)
store tz offset as documented
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Stop.pm4
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;