From fb0d8fc6083ba6f34934d38ff58fa069c7f02a85 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 3 Apr 2024 14:54:13 +0200 Subject: also show local time for current stop --- templates/_train_details.html.ep | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'templates/_train_details.html.ep') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 1437449..35c0aaf 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -44,6 +44,9 @@ % } % elsif ($departure->{prep_time}) { Ein: <%= $departure->{prep_time} %> +% } +% if ($departure->{tz_offset} and $departure->{local_sched_arr}) { +
Lokal: <%= $departure->{local_sched_arr}->strftime('%H:%M') %> % } @@ -106,6 +109,9 @@ % } % elsif ($departure->{sched_departure}) { Ab: <%= $departure->{sched_departure} %> +% } +% if ($departure->{tz_offset} and $departure->{local_sched_dep}) { +
Lokal: <%= $departure->{local_sched_dep}->strftime('%H:%M') %> % } @@ -282,6 +288,9 @@ % } % if ($departure->{missing_realtime} or $departure->{no_realtime_yet}) { gps_off +% } +% if ($departure->{tz_offset} and $departure->{local_dt_da}) { + (lokal <%= $departure->{local_dt_da}->strftime('%H:%M') %>) % } <%= stash('station_name') %> % if (my $u = $departure->{utilization}) { -- cgit v1.2.3