Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

DateValues rendered in GMT convey no timezone info, causing client side javascript mis-interpretation. #27

Open
GoogleCodeExporter opened this issue May 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. Inserting a DateValue into a table requires that it be expressed in GMT
2. JSON renderer generates code to construct Date objects with 
year,month,day,hour,minute,second
3. Client-side javascript interprets date in local timezone

What is the expected output? What do you see instead?

I expect the client side to have enough information to generate correct local 
time values.


What version of the product are you using? On what operating system?

1.0.2, all platforms.


Please provide any additional information below.

You can solve this problem by having the JSON renderer generate millisecond 
past epoch constructors.  Then the client will construct dates properly since 
milliseconds past epoch are explicitly UTC, whereas date fields are interpreted 
locally.  As an added bonus, this will reduce the amount of data sent across 
the wire.

Original issue reported on code.google.com by [email protected] on 6 Jan 2011 at 3:38

@GoogleCodeExporter
Copy link
Author

I have the same issue.

Original comment by [email protected] on 28 Jan 2011 at 5:20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant