I am using the rad scheduler with a exchange service provider, i have time zone offset value set for the scheduler and the display of appointments work fine. However when i create appointment with the offset i am getting an error:
The request failed schema validation: The 'http://schemas.microsoft.com/exchange/services/2006/types:BaseOffset' element is invalid - The value '-PT-8H' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:duration' - The string '-PT-8H' is not a valid Duration value.
Looking through the documentation i found that the appointment time needs to be convered to UTC. So i added the following line in the appointment Inset event.
The request failed schema validation: The 'http://schemas.microsoft.com/exchange/services/2006/types:BaseOffset' element is invalid - The value '-PT-8H' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:duration' - The string '-PT-8H' is not a valid Duration value.
Looking through the documentation i found that the appointment time needs to be convered to UTC. So i added the following line in the appointment Inset event.
e.Appointment.Start.ToUniversalTime();
e.Appointment.End.ToUniversalTime();
While stepping thru the code the start and end times look ok, meaning they are in UTC however i get the error above
at Exchange\ExchangeSchedulerProvider.cs:line 166
at Telerik.Web.UI.SchedulerProviderBase.Insert(ISchedulerInfo schedulerInfo, Appointment appointmentToInsert)
when trying to create the item.
Can you please help?