When implementing a data source, how should the client-side time zone
be taken in to account?

I see that the ability to pass strings to create Date objects was
added to the JSON syntax:
http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#json_modifications

but the times on the server are in the server's time zone and the
Javascript constructor for Date objects creates object in the client's
time zone. So, passing "new Date(2010, 01, 26, 00, 00, 00)" from the
server trying to indicate the time in UTC (or whatever the local time
zone of the server is) would create a date object representing "Fri
Feb 26 2010 00:00:00 GMT-0800 (Pacific Standard Time)" (or whatever
the local time zone of the client is).

Suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to