-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix off by one errors in diffFiltered #446
Conversation
I'm not sure this fixes it. It's more like moving the plug from one leak to another. In 3.x, I tried to address it by allowing users to pass DatePeriod options into to the filtered wrappers. The issue will still occur if a specific date range happens. If we were on PHP 8.2, I would have pushed to use https://www.php.net/manual/en/class.dateperiod.php#dateperiod.constants.include-end-date by default. |
See #429 |
I don't disagree, but this change should fix the regression which is what I think 2.x users are looking for.
I agree this is the better solution as we can let users decide where their end date should be. |
Do you want to backport the 3.x changes with this? |
I can take care of that. |
@othercorey I had time to look at this today and I don't think that we'll be able to backport the additional option parameter as it would require changing |
Ah ok. I had hoped it was easy, but users can just move to 3.x. |
Remove the work around that I added and add tests covering
DifferenceTrait
inDate
classes. A similar fix will likely be needed in 3.x