New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support displaying arbitrary time zone settings. #122
Comments
Up ? It's been a year now, have you been able to have a look at it ? |
I'd like to +1 this as well, though I'm thinking maybe we should provide an So, for everyone scratching their heads at this issue in the future: here's a pollyfill |
@wa0x6e any updates on this? I am experiencing an issue that is possibly related. Timestamps are stored with the correct dates, but Cal Heatmap highlights the wrong date (highlights the previous day): Timestamp (human time):
|
indeed, the calendar is always using the browsers' timezone. Customizing the timezone is in the todo list. |
@wa0x6e Thanks for the response. Any idea on when this could occur? |
Just figured out that this is probably why Pagure user activity heatmaps are frequently off by a day for users in timezones a long way from UTC (see this downstream issue). |
@wa0x6e Any updates on this? |
Also need this feature. |
Added in v4 |
It appears that the visualization displays data points based on the client browser's timezone offset and I can't seem to change it.
I can hack my data object by adding
(new Date( timestamp * 1000 )).getTimezoneOffset() * 60
to each of the keys to make it display in UTC (desirable in my application).Here's an example which illustrates this:
http://codepen.io/jblz/pen/XJdLwx
It would be nice to be able to supply an offset to override the client when the data being visualized are in a different time zone.
The text was updated successfully, but these errors were encountered: