Workaround wrong dates in the database
This commit is contained in:
parent
64bcc6800b
commit
60f068c20e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue