Disable automatic timezone conversion

5 posts, 0 answers
  1. Chad
    Chad avatar
    13 posts
    Member since:
    Aug 2012

    Posted 25 Jul 2015 Link to this post

    How do I disable the automatic conversion to the client timezone. I want the scheduler to display the date and time I tell it to without it converting to the users local timezone. I am displaying flight data and the users have the ability to plot the events in UTC, at a given airport or their timezone. I convert these dates manually in SQL and return them to the UI. Is this possible or is there some workaround I can put in place. 
  2. eo
    eo avatar
    27 posts
    Member since:
    Jul 2015

    Posted 27 Jul 2015 in reply to Chad Link to this post

    Hello Chad,

    To disable the Timezone conversion in the currentTimeMarker use:

    currentTimeMarker: {
        useLocalTimezone: false
      }

    To work around the automatic implicit conversion of dates between server and client side, you can use this workaround provided by Telerik. 

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 28 Jul 2015 Link to this post

    Hello Robert,

    Actually the Scheduler by default expects to receive and sends to the server only UTC dates and if no "timezone" option is defined on the client side all events will be shown by converting these UTC dates to the client timezone. If you need to show the events the same way to all clients than you should set the "timezone" option. If you need to show the events the same way as on the server side than this option should be set to "Etc/UTC".

    Regards,
    Vladimir Iliev
    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
  5. Andrew
    Andrew avatar
    7 posts
    Member since:
    Jul 2015

    Posted 20 Sep 2015 Link to this post

    This still does not seem to work. With everything set at Etc/UTC the scheduler is still adjusting the times.
  6. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 22 Sep 2015 Link to this post

    Hi Andrew,

    I already answered to this query in duplicated support ticket created by you - #971957 . Please keep in mind that it is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers in a shorter time.

    Regards,
    Vladimir Iliev
    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