Time zone problems

What I would like to be able to do is set the event's timezone to EST and have the calendar show the event at the proper time in relation to EST no matter what the system time is.  So if I'm in Central Standard Time which is 1 hour behind EST, I should see the event in the calendar 1 hour before it's EST time.

For example, an event is pulled from the database is at 12:00 PM (no time zone).  What do I need to do to get the calendar event to show up 11:00AM in my calendar if my computer's time zone is in Central Standard Time?

We tried setting the StartTimeZone and EndTimeZone properties in the code to America/Toronto or America/New_York in an attempt to set the event's timezone as EST.  This change resulted in the event appearing in the calendar at 1:00PM instead of 11:00AM.

Any help would be appreciated. 

Thx


1 Reply 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team January 14, 2021 10:55 AM UTC

Hi Edward, 

Thanks for the update. 

We have validated your requirement at our end and suggest you to set CST time zone to the Schedule Timezone property as shown in the below code to get the EST time zone events one hour back on the CST time. 

[Index.cshtml] 
    @(Html.EJS().Schedule("schedule") 
        .Width("100%") 
        .Height("550px")         
        .PopupOpen("onPopupOpen") 
        .SelectedDate(new DateTime(2021, 1, 14)) 
        .Timezone("America/Chicago") 
        .EventSettings(es => 
            es.DataSource(dataManager => 
                { dataManager.Url("/Home/LoadData").CrudUrl("/Home/UpdateData").CrossDomain(true).Adaptor("UrlAdaptor"); } 
            ) 
        ).Render() 
    ) 


Kindly try the above sample and get back to us if you need any further assistance. 

Regards, 
Ravikumar Venkatesan 


Marked as answer
Loader.
Up arrow icon