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() {
|
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;
|
||||||
|
|
Loading…
Reference in New Issue