diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-01-16 19:23:03 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-01-16 19:23:03 +0100 |
commit | c5d3da4b222c1ae125e9e74db6276098bb414bea (patch) | |
tree | 0b603e5a36a2a0bcaa3131db60b35b7b80108605 | |
parent | 0c39b8492cf9d078aedb829a40f5a887dea98c1b (diff) |
png frontend: add support for aseag backend
-rw-r--r-- | index.pl | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -232,11 +232,17 @@ sub make_infoboard_lines { my $destination = $d->destination; my $time = $d->time; my $etr; - - my $dt_dep = $strp_full->parse_datetime($time) - // $strp_simple->parse_datetime($time); + my $dt_dep; my $dt; + if ( $d->can('datetime') ) { + $dt_dep = $d->datetime; + } + else { + $dt_dep = $strp_full->parse_datetime($time) + // $strp_simple->parse_datetime($time); + } + if ( ( $displayed_lines >= $no_lines ) or ( $d->can('is_cancelled') and $d->is_cancelled ) ) { |