Unverified Commit fb0d8fc6 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

also show local time for current stop

parent 7152cb55
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1243,6 +1243,10 @@ sub train_details {
					  = $station_info->{dep_cancelled};
					$res->{is_cancelled} = $res->{arrival_is_cancelled}
					  || $res->{arrival_is_cancelled};
					$res->{tz_offset}       = $station_info->{tz_offset};
					$res->{local_dt_da}     = $station_info->{local_dt_da};
					$res->{local_sched_arr} = $station_info->{local_sched_arr};
					$res->{local_sched_dep} = $station_info->{local_sched_dep};
					$res->{platform}        = $station_info->{platform};
					$res->{scheduled_platform}
					  = $station_info->{sched_platform};
+9 −0
Original line number Diff line number Diff line
@@ -44,6 +44,9 @@
%     }
%     elsif ($departure->{prep_time}) {
        Ein: <%= $departure->{prep_time} %>
%     }
%     if ($departure->{tz_offset} and $departure->{local_sched_arr}) {
        <br/>Lokal: <%= $departure->{local_sched_arr}->strftime('%H:%M') %>
%     }
    </div>
    </div>
@@ -106,6 +109,9 @@
%     }
%     elsif ($departure->{sched_departure}) {
        Ab: <%= $departure->{sched_departure} %>
%     }
%     if ($departure->{tz_offset} and $departure->{local_sched_dep}) {
        <br/>Lokal: <%= $departure->{local_sched_dep}->strftime('%H:%M') %>
%     }
    </div>
    </div>
@@ -282,6 +288,9 @@
%           }
%           if ($departure->{missing_realtime} or $departure->{no_realtime_yet}) {
              <i class="material-icons" aria-label="Echtzeitdaten fehlen">gps_off</i>
%           }
%           if ($departure->{tz_offset} and $departure->{local_dt_da}) {
              (lokal <%= $departure->{local_dt_da}->strftime('%H:%M') %>)
%           }
            <strong><%= stash('station_name') %></strong>
%           if (my $u = $departure->{utilization}) {