diff options
Diffstat (limited to 'lib/Travel/Status')
-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; |