From 60f068c20e0119263c6b3b609e5d80b67bd44ff9 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 1 Nov 2014 04:55:30 +0200 Subject: [PATCH] Workaround wrong dates in the database --- schedule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schedule.js b/schedule.js index 7cd84a6..e6af67e 100644 --- a/schedule.js +++ b/schedule.js @@ -4,8 +4,8 @@ function Schedule(hallId) { this.update = function() { $.getJSON("https://cfp.openfest.org/schedule.json", function(data) { var scheduleEvents = $.map(data[hallId], function(event) { - event['startTime'] = moment(event['startTime']); - event['endTime'] = moment(event['endTime']); + event['startTime'] = moment(event['startTime']).subtract(2, 'hours'); + event['endTime'] = moment(event['endTime']).subtract(2, 'hours'); return event; }); events = scheduleEvents;