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

Scheduler timezone problem

4 Answers 431 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ran
Top achievements
Rank 1
Ran asked on 11 Dec 2015, 08:13 AM

 

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

 

4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Dec 2015, 08:18 AM
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!
 
0
Ran
Top achievements
Rank 1
answered on 20 Dec 2015, 08:36 AM

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

0
Ran
Top achievements
Rank 1
answered on 20 Dec 2015, 08:37 AM

sorry,

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

0
Vladimir Iliev
Telerik team
answered on 22 Dec 2015, 01:46 PM
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!
 
Tags
Scheduler
Asked by
Ran
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Ran
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or