4 Answers, 1 is accepted
Thank you for contacting us.
I would suggest you to revise the following topic which elaborates on this matter.
I hope this helps.
Kind regards,
Maria Ilieva
the Telerik team
I guess you didn't understand my question. I am quite familiar with converting a datetime object from one timezone to another. The point of my question is that if I enter lets say 21.02.2011 14:45 as the selected date, I want to receive the same , but as it is in UTC. Instead, I receive it in some other timezone, and it is automatically converted to UTC with the other timezone's offset. I don't want that offset.
For example if I enter 21.02.2011 14:45,
and I want to use it in my code as 21.02.2011 14:45 (UTC)
insted the date on the clientside is 21.02.2011 14:45 (SOME OTHER TIMEZONE, -4h OFFSET FOR INSTANCE)
and it becomes when I access it server-side 21.02.2011 18:45 (UTC) because of the other timezone's offset.
I hope this makes it a bit clearer. The problem is not that I have to convert, but the mysterious timezone that comes with the date. If there is a standard way of determinig what is that timezone so I can do the conversion in a generic way, it will be fine.
The mentioned behavior is actually not related with our control functionality but is generic behavior which depends on the particular browser settings. The RadCalendar is returning Date type of object and its transformation to a date in the particular time zone depends on the browser side. So we could not change this logic as it is not directly related to our control.
All the best,
Iana
the Telerik team
Best regards,
Ivaylo Slavov