This is a migrated thread and some comments may be shown as answers.

Timezone issue upon editing task

3 Answers 79 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 08 Sep 2015, 09:51 PM
I have a problem with Gantt chart. Our application is deployed on a server with its timezone set to UTC. I'm hitting the application from US Pacific timezone, and when I update or add new task, the data submitted to the server is in UTC as oppose to my local time. So when I open Task edit form and set a Start time of 9/8/2015 12:00:00 AM (which should be Pacific, since my browser is in pacific), the data being posted to server shows it as 9/8/2015 12:00:00 AM UTC. How can I overcome this?

3 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 10 Sep 2015, 03:11 PM
Hello Aaron,

The Gantt widget always stores tasks in UTC as there is no timezones support implement yet. This means that Gantt will always assume the entered date on the client is in UTC and the server-side storage is UTC as well. In general, this approach should work just fine in the majority of the cases.

In case this does not fit your scenario would you please describe the use case? In general we have a timezones feature planned, which will add the possibility to save a task in a given time zone (in your case this would be PST).

Regards,
Genady Sergeev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Aaron
Top achievements
Rank 1
answered on 12 Sep 2015, 07:41 PM
The problem seemed to exist when using MVC wrapper. For some reason, the dates being passed to server using the widget is inconsistent. For example if I picked the Date from date picker versus I typed in manually in the date picker, seem to have sent different values back to server. I am not sure if this was a bug with wrapper, but I switched to js and using the parametermap override, as you have in some online samples seem to have at least consistently send times in UTC. 
0
Bozhidar
Telerik team
answered on 16 Sep 2015, 08:06 AM
Hi,
 
Thank you for reporting this. We will look further into the issue. Glad you were able to resolve the issue for your project.

Regards,
Bozhidar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Gantt
Asked by
Aaron
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Aaron
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or