My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 40: datepicker selects localdate, can it select UT date ?
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  kelvin.luck
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by ajp.astro, Feb 14, 2009
My computer runs on UTC,
but datepicker still selects "today" as local date, not UTdate -
eg. Feb14 PST, not Feb15 UT.

Is there a way to make it recognize today on UT ?

Issue: my database times are in UT, but datepicker by default can lose the
latest values by selecting PST date instead of UTdate.



Comment 1 by kelvin.luck, Feb 16, 2009
Sorry, I don't quite understand your issue. 

Can you provide an example which illustrates the problem?

Thanks,

Kelvin :)
Owner: kelvin.luck
Comment 2 by gregor007, Aug 17, 2009
Not a defect - JS runs on the client, and takes its time from the client settings;
therefore, this can be converted to UTC milliseconds (which is the root of all time)
by running .getTime() on the Date instance. I do this, and then send the millis back
to the server to save.

What I want to know is if there is a setting to have datepicker return UTC
milliseconds directly, without me having to take the time to parse and process the
formatted date returned (as I am doing now)...
Sign in to add a comment

Hosted by Google Code