You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when user checks compare mode, the default compared date is set to { today - 365 }, but year can have 366 days which causes incorrect compare date set, example:
To fix this you need to change 400 line in date-range-picker.tsx from:
setRangeCompare({
from: new Date(
range.from.getFullYear(),
range.from.getMonth(),
range.from.getDate() - 365 // remove this
),
...
to:
setRangeCompare({
from: new Date(
range.from.getFullYear() - 1, // add this
range.from.getMonth(),
range.from.getDate()
),
...
Thanks
The text was updated successfully, but these errors were encountered:
Hi, when user checks compare mode, the default compared date is set to { today - 365 }, but year can have 366 days which causes incorrect compare date set, example:
To fix this you need to change 400 line in date-range-picker.tsx from:
to:
Thanks
The text was updated successfully, but these errors were encountered: