We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

disable timezone converted in Schedule control

Hi i want to disable Timezone in ejSchedule
When i put Data to ejSchedule like this {"Subject": "value","StartTime":"2015-11-08T17:30:00",...} It automatically ad some Extra +X UTC value to StartTime and Endtime.
If i send to ejSchedule that event is at 17:00 i want to see it at 17:00 not in 17+XUTC.
10x u.

1 Reply

KP Krishna Priya Sethuramalingam Syncfusion Team December 4, 2014 11:30 AM UTC

Hi Sergiy,
 
We suggest you to set “timeZone” value depending on your culture to overcome the issue. It is necessary to add UTC value based on your culture to meet your requirement.
 
Please find the code snippets.

$("#Schedule1").ejSchedule({

                 timeZone:"UTC +5:30"//To set timeZone based on culture

                width: "100%",

                height: "525px",

                appointmentSettings: {

                    dataSource: dManager,

                    id: "Id",

                    subject: "Subject",

                    startTime: "StartTime",

                    endTime: "EndTime",

                    allDay: "AllDay",

                    recurrence: "Recurrence",

                    recurrenceRule: "RecurrenceRule"

                }

            });

 
The below code snippet will explain on how to bind date, start time and end time to schedule control. Here, we have passed start time as 17:00 and end time as 17:30 to get the schedule appointment at the given time.
 

 window.Default = [{

 

            Id: 100,

 

            Subject: "Bering Sea Gold",

 

            StartTime: new Date(new Date("2015-11-08").getTime() + 86400 * 1000 * -

 

        2).setHours(17, 00), // Setting starttime,date and end time

 

            EndTime: new Date(new Date("2015-11-09").getTime() + 86400 * 1000 * -2).setHours(17, 30),

            AllDay: false,

 

            Recurrence: true,

 

            RecurrenceRule: "FREQ=DAILY;INTERVAL=2;COUNT=10"

 

        }];

 

 

We have a prepared a sample and please find the sample from the following location.

http://www.syncfusion.com/downloads/support/directtrac/general/Timezone_JS-37181916.zip


Please let us know, if you need any other assistance.

 

Thanks and Regards,

Krishna Priya.S


Loader.
Live Chat Icon For mobile
Up arrow icon