-
Notifications
You must be signed in to change notification settings - Fork 76
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
getOccurrencesAfter
doesn't work with microseconds
#104
Comments
Hello, it's a bit hard to tell what's happening with the code your provided and without the exact rule, and on top of that Please provide the following:
Thank you! |
getOccurrencesAfer
doesn't work with microseconds
getOccurrencesAfer
doesn't work with microsecondsgetOccurrencesAfter
doesn't work with microseconds
Thank you for the details. Microseconds are known to cause issues with date comparison. The microsecond component was intended to be removed from the input, but you found a bug. I published version 2.3.1 which fixes this issue. |
Awesome, thanks for the quick fix. Love this package! |
Hey there, not sure if this an actual bug.
I have found that if I set the
dtstart
to a time with microseconds (like23:59:59.999999
), then thenextOccurrencesAfter
will return the next day's occurrence and not today's occurrence.Once I remove the microseconds, it works fine.
I'm setting
dtstart
to a Carbon instance:Where
endTime()
wasnow()->endOfDay()->toTimeString('microsecond')
.The text was updated successfully, but these errors were encountered: