summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/hafas b/bin/hafas
index c2b8558..e04a4c0 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -330,7 +330,9 @@ for my $res ( $hafas->connections ) {
$sec->name, $sec->direction );
printf(
"%-5s %-${have_delay}s ab %s%s%s\n",
- $sec->dep_datetime->strftime('%H:%M'),
+ $sec->dep_cancelled
+ ? '--:--'
+ : $sec->dep_datetime->strftime('%H:%M'),
format_delay( $sec->dep_delay ),
$sec->dep_loc->name,
$sec->dep_platform ? q{: } : q{},
@@ -338,7 +340,9 @@ for my $res ( $hafas->connections ) {
);
printf(
"%-5s %-${have_delay}s an %s%s%s\n",
- $sec->arr_datetime->strftime('%H:%M'),
+ $sec->arr_cancelled
+ ? '--:--'
+ : $sec->arr_datetime->strftime('%H:%M'),
format_delay( $sec->arr_delay ),
$sec->arr_loc->name,
$sec->arr_platform ? q{: } : q{},