Skip to content
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

Closed
jblz opened this issue Dec 16, 2014 · 9 comments
Closed

Support displaying arbitrary time zone settings. #122

jblz opened this issue Dec 16, 2014 · 9 comments

Comments

@jblz
Copy link
Contributor

jblz commented Dec 16, 2014

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.

@nimaen
Copy link

nimaen commented Jan 27, 2016

Up ? It's been a year now, have you been able to have a look at it ?

@swantzter
Copy link

swantzter commented Jul 11, 2016

I'd like to +1 this as well, though I'm thinking maybe we should provide an afterLoadData snippet in the meantime.

So, for everyone scratching their heads at this issue in the future: here's a pollyfill

@aalvrz
Copy link

aalvrz commented Aug 6, 2017

@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):

Saturday, August 5, 2017 12:00:00 AM

image

@wa0x6e
Copy link
Owner

wa0x6e commented Aug 7, 2017

indeed, the calendar is always using the browsers' timezone. Customizing the timezone is in the todo list.

@aalvrz
Copy link

aalvrz commented Aug 28, 2017

@wa0x6e Thanks for the response. Any idea on when this could occur?

@AdamWill
Copy link

AdamWill commented Mar 1, 2018

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).

@aalvrz
Copy link

aalvrz commented Mar 1, 2018

@wa0x6e Any updates on this?

@alanmels
Copy link

alanmels commented Mar 1, 2021

Also need this feature.

@wa0x6e
Copy link
Owner

wa0x6e commented Nov 16, 2022

Added in v4

@wa0x6e wa0x6e closed this as completed Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants