From 8a6e430d22fb3269d4592c4e3e0a2b0bdf20147b Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 26 Nov 2023 13:41:37 +0100 Subject: EFA: Fix stop constructor (and thus efa -v / -V) --- Changelog | 5 +++++ lib/Travel/Status/DE/EFA.pm | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index c91a055..d346fe6 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,8 @@ +git HEAD + + * EFA: Fix full_route creating route elements with invalid data + * efa-m: Fix -v / -V (as a consequence of the fix above) + Travel::Status::DE::VRR 1.23 - Fri Nov 24 2023 * efa-m: Do not show free-text messages by default. Use the newly diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 56a9342..c4cc090 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -375,10 +375,10 @@ sub parse_route { push( @ret, Travel::Status::DE::EFA::Stop->new( - arr_date => sprintf_date( $dates[0] ), - arr_time => sprintf_time( $times[0] ), - dep_date => sprintf_date( $dates[-1] ), - dep_time => sprintf_time( $times[-1] ), + arr_date => scalar sprintf_date( $dates[0] ), + arr_time => scalar sprintf_time( $times[0] ), + dep_date => scalar sprintf_date( $dates[-1] ), + dep_time => scalar sprintf_time( $times[-1] ), name => $e->getAttribute('name'), name_suf => $e->getAttribute('nameWO'), platform => $e->getAttribute('platformName'), -- cgit v1.2.3