diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-30 07:21:34 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-30 07:21:34 +0100 |
commit | 55795b6d09a6b64507fd1c59bbaebb2cba9ce1b9 (patch) | |
tree | 4b8a20a4424ffa1f7f5809c7a0e14c5dbb7f538d /bin | |
parent | 5c9127df3d10d3a3bd420341c20498ac545ca23e (diff) |
hafas: show departure date in connection header
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/hafas | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 ), |