-
Notifications
You must be signed in to change notification settings - Fork 27
formatting labels by timezone in a datetime axis #42
Comments
I have pretty much the same problem. I try to have the x-axis show date in UTC format, but it isn't possible to set the timezone on the x-axis (or any axis for that matter). This means if you have data in UTC timezone, e.g. "2017-01-19T09:00:00Z", you can have a formatter use "{ pattern: "yyyy-MM-dd HH:mm:ss 'UTC'", timeZone: 0 }" and have the popup show the correct timestamp "2017-01-19 09:00:00 UTC", but on the hAxis, you can only set the format, not the timezone. This means all dates on the hAxis are converted to local time and at best, you can have it attach the timezone like this: format: 'yyyy-MM-dd HH:mm:ss Z'. The result would be (in Denmark, UTC+1 in the winter): 2017-01-19 10:00:00 +0100. While technical correct, this isn't what I want (I want UTC timezone). Currently, the only solution seems to be to convert the original timestamp to localtime this way: "2017-01-19T09:00:00Z" -> "2017-01-19 09:00:00". This would help, but still be wrong during the daylight saving time switches. Or manually handle the hAxis ticks and labels, i.e. reinvent the algorithm to select ticks and then put on the correct labels. |
Vote for same issue. |
same issue. Voting for this. |
Running into this as well. Data is shown in two timezones: The correct one (configured to EST) in the hover text, and the incorrect one (browser timezone) on the hAxis tick labels. |
Same issue here. Vote for this as well. hAxis should have timezone specification support. |
Same, even if I'm not hopeful. No commits since 2016.. |
Original issue reported on code.google.com by
n...@jankplus.users.panix.com
on 16 Jul 2013 at 10:30Attachments:
The text was updated successfully, but these errors were encountered: