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

Event start end problem

Asked by prabhat
6 years ago.

Hi
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(dp.data.Events, function (index, element) {
var section = me.dp.rows.find(element.sectionid);
var e = new DayPilot.Event({
start: getDate(element.start),
end: getDate(element.end),
id: element.id,
});

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

prabhat

Answer posted by Dan Letecky [DayPilot]
6 years 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:
https://doc.daypilot.org/scheduler/event-end-date-time/

Comment posted by prabhat
6 years ago.

Thanks Dan

Its working

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