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.
Unfortunately, activation email could not send to your email. Please try again.

disable timezone converted in Schedule control

Thread ID:

Created:

Updated:

Platform:

Replies:

117725 Dec 3,2014 02:38 PM Dec 4,2014 06:30 AM JavaScript 1
loading
Tags: ejSchedule
Sergiy Tokarchuk
Asked On December 3, 2014 02:38 PM

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.

Krishna Priya Sethuramalingam [Syncfusion]
Replied On December 4, 2014 06:30 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;