summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 14:44:59 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 14:44:59 +0200
commit7152cb55a726f86fd7451286c8302ec4cb137da8 (patch)
treed04407abfa47b73cd1785508b83d60dda27d4d3d /templates/_train_details.html.ep
parent1893167d1a4403dda6ed07870fa6c83263099946 (diff)
show local time if it differs from backend time
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 9d7241f..1437449 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -260,6 +260,9 @@
<i class="material-icons" aria-label="Echtzeitdaten fehlen">gps_off</i>
% }
% }
+% if ($stop->{tz_offset} and $stop->{local_dt_da}) {
+ (lokal <%= $stop->{local_dt_da}->strftime('%H:%M') %>)
+% }
<%= $stop->{name} %></a>
% if ($stop->{load}{FIRST} or $stop->{load}{SECOND}) {
% my ($text, $icon1, $icon2) = utilization_icon([$stop->{load}{FIRST}, $stop->{load}{SECOND}]);
@@ -312,6 +315,9 @@
<i class="material-icons" aria-label="Echtzeitdaten fehlen">gps_off</i>
% }
% }
+% if ($stop->{tz_offset} and $stop->{local_dt_ad}) {
+ (lokal <%= $stop->{local_dt_ad}->strftime('%H:%M') %>)
+% }
<%= $stop->{name} %></a>
% if ($stop->{load}{FIRST} or $stop->{load}{SECOND}) {
% my ($text, $icon1, $icon2) = utilization_icon([$stop->{load}{FIRST}, $stop->{load}{SECOND}]);