Hi,
I am trying to use the Scheduler drag and drop feature in a timezone environment.
My scenario:
* Server is running in UTC 00:00 (Azure server)
* Clients are in South America and Europe. I am testing it in New Zealand (UTC +13:00) at this moment.
* All date/time values are stored in database without timezone information. I must use this way because this is an old database that can't be changed
The scheduler is working as expected if Drag and Drop is not in use, but if I try to use the drag and drop it is not working.
More details:
Appointment for 2018-03-05 starts 10:01 end 11:01
The time I took the screenshot is: 23:42 (as I said UTC +13:00)
If I drag it to 2018-03-05 16:00 the request is:
You can see that the starttime is 03:00 instead of 16:00. I believe that this is UTC 00:00
So, I am receiving the change as 03:00 (instead of 16:00).
What I already tried:
1. Adding server timeZone to the scheduler - UTC.
timeZone: "UTC 00:00",
2. Adding the browser time zone (UTC +13:00)
3. Force a start and end timezone in all records using server timezone UTC 00:00
startTimeZone: "UTC 00:00",
4. Force a start and end timezone in all records using server timezone UTC 13:00 (only for testing purposes)
startTimeZone: "UTC 13:00",
5. I tried the applyTimeOffset: true, but this change all times and it is not correct.
In my development machine (localhost) it work as expected, but my dev machine is in UTC 13:00 server and client.
I am using the control correctly?
My DataManager:
var dataManager = ej.DataManager({
url: this.urlAgendaScheduler,
adaptor: new ej.WebApiAdaptor()
});
Is there an option to receive the timezone in the request so I can adjust the date/time in the server? i.e. If I receive the ej.Scheduler timeZone in the drag and drop post I can handle it.
Cheers,
Leonardo