From c5d3da4b222c1ae125e9e74db6276098bb414bea Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 16 Jan 2015 19:23:03 +0100 Subject: png frontend: add support for aseag backend --- index.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.pl b/index.pl index c0b5ce5..e3d383d 100644 --- a/index.pl +++ b/index.pl @@ -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 ) ) { -- cgit v1.2.3