PDA

View Full Version : DatePicker and DateTime object UTC support



mabello
14 Oct 2009, 7:55 AM
Hi there,
I just went through the code of the DatePicker and I checked out the setValue method.
Basically, from my understanding, whaterver date you are using, when setValue internally call the update method, the date is considered always in local time.
For example, if you have a Date in UTC format, for example 30 November 23:00:00 UTC, in London local time it will be shown as 1 October 00:00:00 (considering the offset of the daylight in this case).

I think adding an option to the datapicker in order to show local/UTC time based on your need could be a good enhancement.