Agenda view does not respect timezone setting

4 posts, 0 answers
  1. Henk
    Henk avatar
    5 posts
    Member since:
    May 2013

    Posted 03 Oct 2014 Link to this post

    Hi all,
    I've got the scheduler set up with the timezone setting ('Europe/Amsterdam') which is currently two hours away from UTC. The scheduler sends event times to the database back-end in UTC. When I add an event with start date timezone and end date timezone set to 'Europe/London', the start time and end times are correctly displayed (UTC+1 hour) in Day view, Month view, Week view but not in Agenda view, where the event is listed with the time set to the Europe/Amsterdam timezone (UTC+2 hours).

    Is this intentional (for some reason) or am I missing something?

    Best regards,
    Henk
  2. Henk
    Henk avatar
    5 posts
    Member since:
    May 2013

    Posted 03 Oct 2014 in reply to Henk Link to this post

    Hi all,
    Sorry for the above post! I got this all wrong. The event is displayed in all the views according to the Europe/Amsterdam timezone (there must be something wrong with my eyesight). When opening the event in the editor, the Europe/London times are shown.

    This timezone thing is quite confusing (at least it is to me) but is this how the scheduler is supposed to work?

    Regards,
    Henk
  3. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 07 Oct 2014 Link to this post

    Hello Henk,

    In general, the Scheduler sends and expects UTC dates (this is because JavaScript Date object is always created in local timezone). The timezone option defines the server timezone, as thus helps to show Scheduler widget in different timezone than the server one using the correct timezone offset. The startTimezone/endTimezone fields define the particular event time zones, but it always will be adjusted to the Scheduler's timezone. In other words, if the Scheduler is in "Europe/Amsterdam" and the event is in "Europe/London", then it will be shown with +2 hours in the Scheduler, as this event will happen +2 hours in Amsterdam.

    Let me know if something is not clear or I am missing something in the described situation.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  4. Henk
    Henk avatar
    5 posts
    Member since:
    May 2013

    Posted 08 Oct 2014 in reply to Georgi Krustev Link to this post

    Hi Georgi,
    Thanks. That makes sense.

    Regards,
    Henk
Back to Top