summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-27 19:31:12 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-27 19:31:12 +0100
commit6d3199f75796910c9a82f4c09de9b3384b9ceaa2 (patch)
treeffc2c4e14aa1d4b472606b6c53a800b515fa5d54
parent1cdc3772cd84f38a3e8a2c04a232c0d8cafd2ef3 (diff)
track-from-to: Display arrival at dest
-rwxr-xr-xexamples/track-from-to2
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,