robertszafa / moodportfolio

2 stars 1 forks source link

BUG: OverTime Graph add remaining nulls #33

Closed DevGareth closed 5 years ago

DevGareth commented 5 years ago

If using week as the unit and enddate is early in a month e.g. day is 6 or less.

Remaining nulls are calculated by maxUnit - lastUnit.

lastUnit is the last photo inn data's time value e.g. 21 days or 10 hours.

maxUnit is the unit of the enddate so if enddate was 06.04.2019 it would be 6 days.


Will solve soon with: https://www.quora.com/How-do-I-get-the-number-of-days-between-two-dates-in-Javascript

DevGareth commented 5 years ago

Solved by adding getDateDifference.