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
Interval.start date of 2001/09/09 or earlier, incorrectly reports false when testing a date that should be considered as 'within' the specified interval
a start date of 2001/09/10 or later correctly returns true
using the sandbox above, enter a start date on or before 2001/09/09 and any other valid dates that should return 'true' for the interval check
IE:
start = 2023/12/10
dateToTest = 2023/12/15
end = 2023/12/20
🙁 Actual behavior
function returns false when Interval.start is <= 2001/09/09, regardless of the test date and Interval.end date
🙂 Expected behavior
function returns true when the test date falls within the start/end Interval, inclusive
Debug information
date-fns version: >=V3.0.0
Browser/Node.js version: Chrome Version 120.0.6099.109 (Official Build) (arm64)
Your timezone: Eastern Standard Time (UTC -5)
Your current time: Eastern Standard Time (UTC -5)Wednesday 10:27:12 AMRhode Island, United States
The text was updated successfully, but these errors were encountered:
There is an issue with the isWithinInterval function
The problem
Interval.start date of 2001/09/09 or earlier, incorrectly reports false when testing a date that should be considered as 'within' the specified interval
a start date of 2001/09/10 or later correctly returns true
### 💻 Code demonstrating the problem
using the sandbox above, enter a start date on or before 2001/09/09 and any other valid dates that should return 'true' for the interval check
IE:
start = 2023/12/10
dateToTest = 2023/12/15
end = 2023/12/20
🙁 Actual behavior
function returns false when Interval.start is <= 2001/09/09, regardless of the test date and Interval.end date
🙂 Expected behavior
function returns true when the test date falls within the start/end Interval, inclusive
Debug information
The text was updated successfully, but these errors were encountered: