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
close icon

Schedule Timezone works only in Chrome

Hi,

I'm using the latest .NET Core packages and i'm facing an issue with the appointment time zone in Firefox / IE. I'm saving the Timezone along with the datetime. In DB, the control saves the appointment date in UTC timezone and the start and end tImezone field has the value UTC +5.30. 

When the appointments are retrieved, it displays the correct time in Chrome but in IE/Firefox it displays the UTC time and hence the  appointments are marked in different dates.

 @{ Html.EJ().Schedule("Calendar")
                    .Locale("en-IN")
                    .Width("100%")
                    .Height("600px")
                    .TimeZone("UTC +5:30")
                    .CurrentView(CurrentView.Month)
                    .TimeMode(TimeMode.Hour12)
                    .ShowQuickWindow(false)
                    .TooltipSettings(pre => pre.Enable(true))    
                    .CategorizeSettings(fields => fields.Datasource((IEnumerable)ViewBag.Categorize).Enable(true).Id("Id").Text("Text").Color("Color").FontColor("FontColor"))
                    .AppointmentSettings(fields => fields.Datasource(ds => ds.URL(Url.Action("GetAppointments", "Schedule")).CrudURL(Url.Action("Batch", "Schedule")).Adaptor("UrlAdaptor"))
                        .Id("Id")
                        .Subject(sub => sub.Field("Subject").ValidationRules(v => v.AddRule("required", true)))
                        .StartTime("StartTime")
                        .EndTime("EndTime")
                        .StartTimeZone("StartTimeZone")
                        .EndTimeZone("EndTimeZone")
                        .Description("Comments")
                        .AllDay("IsAllDay")
                        .Recurrence("IsRecurrence")
                        .RecurrenceRule("RecurrenceRule")
                        .Categorize(cat => cat.Field("Category").ValidationRules(v => v.AddRule("required", true))))
                        .Render();

Kindly help me.

Thanks.
        

2 Replies

AJ Ajay October 8, 2016 01:51 PM UTC

I've fixed this issue by specifying the Datetime Kind as UTC when retrieving from database.


SE Sellakumar Syncfusion Team October 10, 2016 01:13 PM UTC

Hi Ajay, 

Thanks for contacting Syncfusion support. 

We are glad to know that your issue got resolved by yourself. 

Please revert us, if you need any further assistance on this. 

Regards, 
Sellakumar K

Loader.
Live Chat Icon For mobile
Up arrow icon