Workaround wrong dates in the database

This commit is contained in:
Petko Bordjukov 2014-11-01 04:55:30 +02:00
parent 64bcc6800b
commit 60f068c20e
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ function Schedule(hallId) {
this.update = function() { this.update = function() {
$.getJSON("https://cfp.openfest.org/schedule.json", function(data) { $.getJSON("https://cfp.openfest.org/schedule.json", function(data) {
var scheduleEvents = $.map(data[hallId], function(event) { var scheduleEvents = $.map(data[hallId], function(event) {
event['startTime'] = moment(event['startTime']); event['startTime'] = moment(event['startTime']).subtract(2, 'hours');
event['endTime'] = moment(event['endTime']); event['endTime'] = moment(event['endTime']).subtract(2, 'hours');
return event; return event;
}); });
events = scheduleEvents; events = scheduleEvents;