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.
Syncfusion Feedback

Schedule Timezone works only in Chrome

Thread ID:

Created:

Updated:

Platform:

Replies:

126336 Oct 8,2016 01:34 PM UTC Oct 10,2016 01:13 PM UTC ASP.NET MVC 2
loading
Tags: Schedule
Ajay
Asked On October 8, 2016 01:34 PM UTC

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.
        

Ajay
Replied On October 8, 2016 01:51 PM UTC

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

Sellakumar [Syncfusion]
Replied On 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

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.

Warning Icon 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.Close Icon

;