LP calendar - Fix wrong calendar dates in win 8 + firefox

See BT#14608
pull/2688/head
Julio Montoya 7 years ago
parent 8bc6b1cbfe
commit 4a7b498779
  1. 6
      plugin/learning_calendar/view/calendar.tpl

@ -6,11 +6,13 @@
url: "{{ ajax_url }}&a=get_events", url: "{{ ajax_url }}&a=get_events",
success: function(response) { success: function(response) {
for (var i = 0; i < response.length; i++) { for (var i = 0; i < response.length; i++) {
var startDate = moment(response[i].start_date + " 13:00:00").toDate();
var endDate = moment(response[i].end_date + " 13:00:00").toDate();
myData.push({ myData.push({
id: response[i].id, id: response[i].id,
title: response[i].title, title: response[i].title,
startDate: new Date(response[i].start_date), startDate: startDate,
endDate: new Date(response[i].end_date), endDate: endDate,
color: response[i].color color: response[i].color
}); });
} }

Loading…
Cancel
Save