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

[Heatmap] ignore local timezones when creating a heatmap #377

Merged
merged 18 commits into from
Feb 23, 2022

Conversation

Alchez
Copy link
Contributor

@Alchez Alchez commented Feb 17, 2022

Fixes #157. Continuing work done in #161.


GMT +05:30

image

GMT -05:00

image

kimili and others added 17 commits April 22, 2018 00:41
Date math is hard!

This addresses a problem in how the heatmap lays calculates days to lay out the grid. The calculations were being thrown off in some scenarios by a combination of factors including timezone offsets, time of day, and daylight savings time.

This patch should correct all this by forcing each day to be midnight UTC when laying out the grid.
Date math is hard!

This addresses a problem in how the heatmap lays calculates days to lay out the grid. The calculations were being thrown off in some scenarios by a combination of factors including timezone offsets, time of day, and daylight savings time.

This patch should correct all this by forcing each day to be midnight UTC when laying out the grid.
# Conflicts:
#	dist/frappe-charts.min.cjs.js
#	dist/frappe-charts.min.cjs.js.map
#	dist/frappe-charts.min.esm.js
#	dist/frappe-charts.min.esm.js.map
#	dist/frappe-charts.min.iife.js
#	dist/frappe-charts.min.iife.js.map
#	docs/assets/js/frappe-charts.min.js
#	docs/assets/js/frappe-charts.min.js.map
#	docs/assets/js/index.min.js
#	docs/assets/js/index.min.js.map
#	package-lock.json
@Alchez Alchez changed the title [Heatmap] Adjusting grid calcualtion for consistent grid layout [Heatmap] ignore local timezones when creating a heatmap Feb 17, 2022
@Alchez
Copy link
Contributor Author

Alchez commented Feb 21, 2022

@rmehta, so I had to build the library to do local testing and that created the dist and docs/assets folders, even though they're setup to be ignored in .gitignore. Should this PR still include those folders?

@rmehta
Copy link
Member

rmehta commented Feb 21, 2022

cc @nextchamp-saqib

@nextchamp-saqib
Copy link
Member

nextchamp-saqib commented Feb 23, 2022

@rmehta, so I had to build the library to do local testing and that created the dist and docs/assets folders, even though they're setup to be ignored in .gitignore. Should this PR still include those folders?

It seems git tracks ignored files if they have been committed before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Timezone] Heatmap dates getting duplicated between end of previous week and start of next week
5 participants