-
Notifications
You must be signed in to change notification settings - Fork 716
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
[Timezone] Heatmap dates getting duplicated between end of previous week and start of next week #157
Comments
@pratu16x7 - It's very strange that you're seeing it correctly and I am not. I noticed the problem initially in Safari (11.0.3), but I checked in the latest versions of Chrome, Firefox, and Opera - all on MacOS 10.13.3. I'm seeing it constantly incorrect in all those browsers. Can you double check https://frappe.github.io/charts/ in different browsers, or in an incognito window to eliminate the possibility of caching issues? |
@pratu16x7 - OK, it looks to be a timezone - and time of day - specific problem. When I set my clock to GMT, it works as expected. However, when I seeing to my local timezone - Eastern Standard Time - that's when the issue surfaces. I think how days are being calculated to render the grid isn’t taking into account time zone offsets and perhaps daylight savings time, so the day additions get thrown off. I'll continue digging and look for a fix. |
Just to bump this up, this behavior is still present and I feel like it's related to #318 |
Expected Behaviour
The heat map date calculation should not duplicate dates.
Actual Behaviour
The last day of a week in the heat map is getting doubled as the first. Note that this also has the effect of incorrectly rendering the last day of a month and the first day of the next month, so the months do not stack correctly.
Steps to Reproduce:
Some examples:
May 7, 2016
![screenshot 2018-04-20 15 26 32](https://user-images.githubusercontent.com/351819/39069884-4f1f78d6-44af-11e8-9adc-173ba27acb2e.png)
October 1, 2016
![screenshot 2018-04-20 15 26 46](https://user-images.githubusercontent.com/351819/39069887-4f44ae80-44af-11e8-9b1f-28397edd5100.png)
Frappé Charts version: 1.1.0
I'll look into it and see if I can figure out whats going on and open a pull request if I can patch it.
The text was updated successfully, but these errors were encountered: