Timezone issue upon editing task

4 posts, 0 answers
  1. Aaron
    Aaron avatar
    14 posts
    Member since:
    Jan 2012

    Posted 08 Sep 2015 Link to this post

    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?
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 10 Sep 2015 Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Aaron
    Aaron avatar
    14 posts
    Member since:
    Jan 2012

    Posted 12 Sep 2015 in reply to Genady Sergeev Link to this post

    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. 
  5. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 16 Sep 2015 Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready