summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-01-16 19:23:03 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-01-16 19:23:03 +0100
commitc5d3da4b222c1ae125e9e74db6276098bb414bea (patch)
tree0b603e5a36a2a0bcaa3131db60b35b7b80108605
parent0c39b8492cf9d078aedb829a40f5a887dea98c1b (diff)
png frontend: add support for aseag backend
-rw-r--r--index.pl12
1 files 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 ) )
{