Resolve "Trend: Bug Investigation Boolean (yes/no), SP:X"
What was the problem
There were some issues with getting the right ranges of dates for comparison.
For example:
For the current date range of
2024-03-21
to 2024-03-14
the previous date range was
2024-03-14
to 2024-03-07
This resulted in the 14th of March being part of both ranges. Switching from the differenceInDays
method, which counted the difference in days as in the number of days between start and end date, to range
which returned an array of all the included days and then taking the length of that array, fixed this problem.
now the previous date range will be instead
2024-03-13
to 2024-03-06
This fixes:
Closes #1104 (closed) Closes #1103 (closed) Closes #1102 (closed) Closes #1101 (closed)
Edited by Hanhoan Truong