Skip to content

[Heatmap] Adjusting grid calcualtion for consistent grid layout - #161

Open
kimili wants to merge 15 commits into
frappe:masterfrom
kimili:feature/heatmap-customize-month-names
Open

kimili wants to merge 15 commits into
frappe:masterfrom
kimili:feature/heatmap-customize-month-names

Conversation

@kimili

@kimili kimili commented Apr 22, 2018

Copy link
Copy Markdown
Contributor
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

coveralls commented Apr 22, 2018

Copy link
Copy Markdown

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
Copy Markdown
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

kimili commented Apr 23, 2018

Copy link
Copy Markdown
Contributor Author

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

4 participants