From 55795b6d09a6b64507fd1c59bbaebb2cba9ce1b9 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 30 Dec 2023 07:21:34 +0100 Subject: hafas: show departure date in connection header --- bin/hafas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/hafas b/bin/hafas index 5be4f19..3a50bf7 100755 --- a/bin/hafas +++ b/bin/hafas @@ -217,7 +217,7 @@ sub show_similar_stops { sub display_occupancy { my ($occupancy) = @_; - if (not defined $occupancy) { + if ( not defined $occupancy ) { return q{?}; } if ( $occupancy == 1 ) { @@ -325,14 +325,14 @@ for my $res ( $hafas->connections ) { printf( "--:-- (%02d:%02d) %s %s %s\n", $res->duration->in_units( 'hours', 'minutes' ), - $res->arr->strftime('%H:%M'), + $res->arr->strftime(' %H:%M'), display_occupancies( $res->load ), $glance ); } else { printf( "%s (%02d:%02d) %s %s %s\n", - $res->dep->strftime('%H:%M'), + $res->dep->strftime('%d.%m. %H:%M'), $res->duration->in_units( 'hours', 'minutes' ), $res->arr->strftime('%H:%M'), display_occupancies( $res->load ), -- cgit v1.2.3