pawanjain111 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

datepicker selects localdate, can it select UT date ? #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by ajp.as...@gmail.com on 15 Feb 2009 at 1:14

GoogleCodeExporter commented 8 years ago
Sorry, I don't quite understand your issue. 

Can you provide an example which illustrates the problem?

Thanks,

Kelvin :)

Original comment by kelvin.l...@gmail.com on 17 Feb 2009 at 2:03

GoogleCodeExporter commented 8 years ago
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)...

Original comment by gregor...@gmail.com on 18 Aug 2009 at 2:36