summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-02-06 19:59:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-02-06 19:59:47 +0100
commite10cf4f5a830d9cf7f36555671594a86d89ab069 (patch)
treebb21aa2900d274de4e3caac8e1cf386daeb19248
parent765bf0794a92522d13b75ced092ab0cfd8cdbf64 (diff)
db-iris: Fix --output=times
-rwxr-xr-xbin/db-iris5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/db-iris b/bin/db-iris
index 75aec37..9ef3a60 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -228,8 +228,9 @@ sub display_result {
else {
printf(
"%5s → %5s %+d\n",
- get_arrival( $d, '%H:%M' ),
- get_departure( $d, '%H:%M' ), $d->delay,
+ $d->arrival ? $d->arrival->strftime('%H:%M') : q{},
+ $d->departure ? $d->departure->strftime('%H:%M') : q{},
+ $d->delay,
);
}