summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS/Journey.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-06-10 21:00:15 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-06-10 21:00:15 +0200
commit04675008202c0b11d74f41106aa0706c85b9ac81 (patch)
tree57c7be9b6450f1922026a698a53c7f724e888336 /lib/Travel/Status/DE/HAFAS/Journey.pm
parentbac92f915ff58055e9c22337a7eb0f64fa03c440 (diff)
update comments for midnight crossings. DB HAFAS now also uses # trip IDs
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index 2a5d4c0..7933551 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -66,8 +66,7 @@ sub new {
my ( $date_ref, $parse_fmt );
if ( $jid =~ /#/ ) {
- # ÖBB Journey ID - technically we ought to use Europe/Vienna tz
- # but let's not get into that...
+ # modern trip ID, used e.g. by DB and ÖBB
$date_ref = ( split( /#/, $jid ) )[12];
$parse_fmt = '%d%m%y';
if ( length($date_ref) < 5 ) {
@@ -80,7 +79,7 @@ sub new {
}
}
else {
- # DB Journey ID
+ # old (legacy?) trip ID
$date_ref = ( split( qr{[|]}, $jid ) )[4];
$parse_fmt = '%d%m%Y';
if ( length($date_ref) < 7 ) {