diff options
-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, ); } |