mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix allDay event reminders on Safari
This commit is contained in:
parent
d610f6ef1e
commit
1002b656c1
@ -8,7 +8,8 @@ define([
|
||||
'/common/common-constants.js',
|
||||
'/customize/messages.js',
|
||||
'/customize/pages.js',
|
||||
], function($, h, Hash, UI, UIElements, Util, Constants, Messages, Pages) {
|
||||
'/lib/datepicker/flatpickr.js',
|
||||
], function($, h, Hash, UI, UIElements, Util, Constants, Messages, Pages, Flatpickr) {
|
||||
|
||||
var handlers = {};
|
||||
|
||||
@ -477,7 +478,7 @@ define([
|
||||
var nowDateStr = new Date().toLocaleDateString();
|
||||
var startDate = new Date(start);
|
||||
if (msg.isAllDay && msg.startDay) {
|
||||
startDate = new Date(msg.startDay);
|
||||
startDate = Flatpickr.parseDate(msg.startDay);
|
||||
}
|
||||
|
||||
// Missed events
|
||||
|
||||
Loading…
Reference in New Issue
Block a user