summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-05 01:13:04 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-05 01:13:04 +0100
commite7f61e2f0486b3ce891d577907300c7d2f7f1a2e (patch)
tree9cf26b3148f42ab9b66f60f693500108218618ea /lib/DBInfoscreen
parentffe5fd7570f5626198ee86ca3c9e21301faa4d2b (diff)
HAFAS journeyMatch: handle day changes (request for train start date)
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index 5b8870d..1b9226d 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -58,6 +58,7 @@ sub get_route_timestamps_p {
$hafas_promise //= Travel::Status::DE::HAFAS->new_p(
journeyMatch => $opt{train_req} =~ s{^- }{}r,
+ datetime => ( $opt{train} ? $opt{train}->start : undef ),
language => $opt{language},
cache => $self->{realtime_cache},
promise => 'Mojo::Promise',