_public_status_card: correctly calculate token

This commit is contained in:
Daniel Friesel 2023-03-04 10:25:16 +01:00
parent 26814aa470
commit a7c31b6436
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -21,7 +21,7 @@
<div class="center-align countdown" <div class="center-align countdown"
data-duration="<%= $journey->{journey_duration} // 0 %>" data-duration="<%= $journey->{journey_duration} // 0 %>"
% if (param('token')) { % if (param('token')) {
data-token="<%= $journey->{dep_eva} %>-<%= $journey->{timestamp}->epoch %>-<%= $journey->{sched_departure}->epoch %>" data-token="<%= $journey->{dep_eva} %>-<%= $journey->{timestamp}->epoch % 337 %>-<%= $journey->{sched_departure}->epoch %>"
% } % }
data-arrival="<%= $journey->{real_arrival}->epoch %>"> data-arrival="<%= $journey->{real_arrival}->epoch %>">
% if ($journey->{departure_countdown} > 120) { % if ($journey->{departure_countdown} > 120) {