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] Adjusting grid calcualtion for consistent grid layout #161

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

kimili
Copy link
Contributor

@kimili kimili commented Apr 22, 2018

Explanation About What Code Achieves:

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!

Steps To Test:

Refer to #157 - This patch should address the problems outlined there.

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.
@coveralls
Copy link

coveralls commented Apr 22, 2018

Pull Request Test Coverage Report for Build 57

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 38.158%

Totals Coverage Status
Change from base Build 43: 0.0%
Covered Lines: 29
Relevant Lines: 62

💛 - Coveralls

@pratu16x7
Copy link
Contributor

@kimili Could you send this to develop?

t47io and others added 14 commits April 23, 2018 09:04
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
@kimili
Copy link
Contributor Author

kimili commented Apr 23, 2018

@pratu16x7 - Done. The minimized build files reflect those in develop right now, so it'll need a rebuild when merged.

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.

None yet

4 participants