Scheduler timezone problem

5 posts, 0 answers
  1. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 11 Dec 2015 Link to this post

     

    Hi,

     I get this data from the server:

    {
      "id": 4215,
      "route_id": 181,
      "route_name": "Test Task",
      "start": "2015-12-04T01:00:00Z",
      "end": "2015-12-04T03:00:00Z",
      "recurrenceRule": "FREQ=WEEKLY;BYDAY=SU,MO,TU,WE,TH",
      "isAllDay": false
    }

     

    I want to display the task start and end has i get it from the server.

     I tried to use:

    timezone: "Etc/UTC", but it still convert to local timezone.

    here my code:

    http://dojo.telerik.com/@idoglik6/ocavO

    Has you can see the scheduler display the task from 3-4 (in my local timezone +2) and not like i want to see it (1-3)

    Thanks,

     

    Ran

     

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 15 Dec 2015 Link to this post

    Hello Ran,

    When Scheduler is using a standalone SchedulerDataSource, then the timezone option needs to be defined to the schema option like that: Thus the source knows how to treat the received data.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 20 Dec 2015 in reply to Georgi Krustev Link to this post

    Hi Georgi,

    Thanks for the reply.

    I have another problem. When I'm creating the scheduler my data source got changed.

    is_schedule: {
    id: 4232,
    route_id: 1576,
    route_name: "סיור רגיל",
    start: "2015-12-06T01:00:00.000Z", // to this
    start: "2015-12-06T03:00:00", // from this
    end: "2015-12-06T02:00:00.000Z"// to this
    end: "2015-12-06T04:00:00"// from this
    recurrenceRule: "FREQ=WEEKLY;BYDAY=SU,MO,TU,WE,TH,FR,SA",
    isAllDay: false
    }

     

    I don't want the scheduler will change my object.

    i want the scheduler will right the start and end date has they are and will not effect them.

    Thanks,

    Ran

  5. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 20 Dec 2015 in reply to Ran Link to this post

    sorry,

    i want the scheduler will read the start and end date has they are and will not effect them.

  6. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 22 Dec 2015 Link to this post

    Hi Ran,

    I would suggest to read the following help article in details (including the linked additional resources) about how to achieve the desired behavior:

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready