Calendar > All Day events appears to be 2 days event

One thing we noticed is that any time we click the “All Day” checkbox inside of the New Calendar Item popup, it sets the End Date to one day after the start date.

Meaning, if my All Day event is for the 30th, it will set the start as the 30th and the end as the 31st.

This is not how it should be done.


But when I look at the Scheduler on your website, it does the same thing.

All Day events should work the same as they do with Outlook, Google, and the many other calendars out there. The event should run from December 30, 2017 (12:00am) - December 30, 2017 (11:59pm).

It adds to the calendar correctly but the time in the New Item field is incorrect.

See the attached example image. This is the final item that we need to resolve (thus why it is High).

Hello,

It’s expected behaviour for DHTMLX Scheduler. And unfortunately there is no easy solution to achieve that you need.

In your case end_date is 2017-12-31. So it means that your event finishes Dec 31st at 00:00 and covers Dec 30th and doesn’t cover Dec 31st.
That is why event is added to the calendar correctly, and the time in the New Item field is correct too.

“The event should run from December 30, 2017 (12:00am) - December 30, 2017 (11:59pm)”
Try to redefine dhtmlxscheduler_recurring.js file according to your requirements.
Maybe you could at least set “2017-12-30 23:59:59” as end_date (but correct case is to use “2017-12-31” or “2017-12-31 00:00”).