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

Scheduler don't read UTC date properly

Asked by Juan
7 years ago.

Hi,

The server send dates in UTC format, like 2017-10-04T22:00:00Z, but Scheduler read as 2017-10-04T22:00:00 and not convert to the UTC date. In our case is 2017-10-05T00:00:00

Thanks in advance.

Answer posted by Dan Letecky [DayPilot]
7 years ago.

The Scheduler works with an idealized timezone that is based on UTC. It mean all dates need to be supplied without the timezone specification. If you specify the timezone it will be used to convert the data to UTC.

See also:
https://api.daypilot.org/daypilot-date-class/

If you need to make custom conversions you can pre-process the data source (the array with events) and convert the strings to DayPilot.Date objects as needed.

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