search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Event start end problem

Asked by prabhat
6 months ago.

I am loading the events from json like below,
"Events": [{ "name":"Item1", "start":"2017-10-02T00:00:00", "end":"2017-10-06T00:00:00", "id": "3" }]

and in daypilot
$.each(, function (index, element) {
var section = me.dp.rows.find(element.sectionid);
var e = new DayPilot.Event({
start: getDate(element.start),
end: getDate(element.end),

while debugging the dates are correct as 2nd and 6th
But after rendering the dates are showing 2nd and 5th.attached a clip

Thank you

Best Regards


Answer posted by Dan Letecky [DayPilot]
6 months ago.

By default DayPilot works with exact date/time points, i.e. an event with end specified as "2017-10-06T00:00:00" will end at the beginning of October 6, 2017 (midnight).

There is an option to change this behavior using "eventEndSpec" property:

Comment posted by prabhat
6 months ago.

Thanks Dan

Its working

This question is more than 6 months old and has been closed. Please create a new question if you have anything to add.