Display event_timer in UTC format
By default date.parse() will use the local timezone from the browers. But, we want to force UTC, since users are from around the world. Change-Id: I6430704f46c293e31804e6890eac1abcb955ad8a Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
bdf91d1682
commit
4b75746391
@ -24,8 +24,8 @@ function setup_timeline() {
|
||||
var now = parseInt((new Date).getTime() / 1000);
|
||||
for (i = 0; i < events_timeline.length; i++) {
|
||||
var current_event = events_timeline[i];
|
||||
var current_event_start = Date.parse(current_event.start) / 1000;
|
||||
var current_event_end = Date.parse(current_event.end) / 1000;
|
||||
var current_event_start = Date.parse(current_event.start + "Z") / 1000;
|
||||
var current_event_end = Date.parse(current_event.end + "Z") / 1000;
|
||||
if (now > current_event_end) {
|
||||
set_event_status(current_event.name, 'Past');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user