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:
Paul Belanger 2017-10-14 20:06:52 -04:00
parent bdf91d1682
commit 4b75746391
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -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');
}