diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-02-06 19:59:47 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-02-06 19:59:47 +0100 |
commit | e10cf4f5a830d9cf7f36555671594a86d89ab069 (patch) | |
tree | bb21aa2900d274de4e3caac8e1cf386daeb19248 /bin/db-iris | |
parent | 765bf0794a92522d13b75ced092ab0cfd8cdbf64 (diff) |
db-iris: Fix --output=times
Diffstat (limited to 'bin/db-iris')
-rwxr-xr-x | bin/db-iris | 5 |
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, ); } |