diff --git a/www/calendar/inner.js b/www/calendar/inner.js index b6c3f5e8b..196ea510a 100644 --- a/www/calendar/inner.js +++ b/www/calendar/inner.js @@ -684,11 +684,6 @@ Messages.calendar_allDay = "All day"; var startDate = event.start._date; var endDate = event.end._date; - var startDay, endDay; - if (event.isAllDay) { - startDay = startDate.getFullYear() + '-' + (startDate.getMonth()+1) + '-' + startDate.getDate(); - endDay = endDate.getFullYear() + '-' + (endDate.getMonth()+1) + '-' + endDate.getDate(); - } var schedule = { id: Util.uid(), @@ -697,13 +692,10 @@ Messages.calendar_allDay = "All day"; category: "time", location: Util.fixHTML(event.location), start: +startDate, - startDay: startDay, isAllDay: event.isAllDay, end: +endDate, - endDay: endDay }; - newEvent(schedule, function (err) { if (err) { console.error(err);