diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-01-27 19:31:12 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-01-27 19:31:12 +0100 |
commit | 6d3199f75796910c9a82f4c09de9b3384b9ceaa2 (patch) | |
tree | ffc2c4e14aa1d4b472606b6c53a800b515fa5d54 /examples/track-from-to | |
parent | 1cdc3772cd84f38a3e8a2c04a232c0d8cafd2ef3 (diff) |
track-from-to: Display arrival at dest
Diffstat (limited to 'examples/track-from-to')
-rwxr-xr-x | examples/track-from-to | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/track-from-to b/examples/track-from-to index 7b8dc74..9df96e0 100755 --- a/examples/track-from-to +++ b/examples/track-from-to @@ -218,7 +218,7 @@ for my $d ( $status_f->results ) { my $timestr = $d->time; my $d_via = first { $_->train_id eq $d->train_id } $status_t->results; - my $timestr_via = ($d_via ? $d_via->time : '??:??') . $delay; + my $timestr_via = ($d_via ? $d_via->arrival->strftime('%H:%M') : '??:??') . $delay; push( @output, |