summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS/Journey.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-22 21:25:55 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-22 21:25:55 +0100
commit238ada5309129ebee55f01823110777ca5016cce (patch)
tree52449097aaa769f5725940ec130b00f615e99f96 /lib/Travel/Status/DE/HAFAS/Journey.pm
parentc8436d54ed3281c240c5533f1b6152751946a306 (diff)
Journey: support journey JSON that does not provide a date attribute
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index 9295cae..d8d63ff 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -37,7 +37,7 @@ sub new {
my $hafas = $opt{hafas};
my $journey = $opt{journey};
- my $date = $journey->{date};
+ my $date = $opt{date} // $journey->{date};
my $direction = $journey->{dirTxt};
my $jid = $journey->{jid};