summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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};