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.

TimeZone

Thread ID:

Created:

Updated:

Platform:

Replies:

123380 Mar 11,2016 10:31 PM Mar 14,2016 12:57 PM ASP.NET MVC 1
loading
Tags: Schedule
Prasanth
Asked On March 11, 2016 10:31 PM

Hi there,

I am trying to use Schedule in the context of Australian time (Eastern).

I have hard-coded the property TimeZone("UTC +11:00"), only thing is with daylight savings timezone changes to UTC +10:00.  I have few questions regarding this

  1. The appointment object I have getter and setter properties which have Start & End Time which are type of DateTime objects, but when Saving I am trying to convert them to DateTimeOffset objects.  Can this be done without conversion errors?
  2. How do we auto set the timezone based on local time and the month/day the user is viewing
    1. When viewing past or future days which may not be in current UTC due to daylight savings how do we correctly show the data (assuming in the database correct DateTimeOffset object is saved
    2. Now if I decide to extend the application to cover western and central timezone how would I go about implementing the functionality
    Any help regarding this matter would be appreciated.

    Regards
    Prasanth

    Karthigeyan Krishnamurthi [Syncfusion]
    Replied On March 14, 2016 12:57 PM

    Hi Prasanth,

    Thank you for contacting Syncfusion support.

    Please find the following responses for your queries.

    Query1:

    We request you to define the start time and end time as DateTimeOffset data type in-order to avoid the conversion error. We have prepared the sample for your requirement which can be downloaded from the below location,
    http://www.syncfusion.com/downloads/support/forum/123380/ze/timezone1000909076

    Query2:  

    We can set the timeZone dynamically based on the local time. When the schedule initially renders Create event will trigger. In that event function we have calculated the local machine time zone and assigned it to the schedule timezone. In the above sample we have achieved your requirement.

    Query3:

    We suspect that the cause for the issue is day light saving mode. We request you to add start timezone and end timezone (as declare in the above sample) in the database and to set isDST values as false. Kindly refer to the following link to know more about isDST property.
    UG Link: http://help.syncfusion.com/js/api/ejschedule#members:isdst

    Query4:

    We are unclear about your requirement. We request you to provide more details like which functionality you are going to extent, sample if possible. We can analyze the mentioned scenario and provide you the possible solution.


    Regards,
    Karthigeyan

    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.

    ;