-
Notifications
You must be signed in to change notification settings - Fork 48
RecurrenceSetIterator.next() returns next date/times out of order. #61
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
Comments
Does this only happen when you use |
I've created a unit test which does the same thing without calling |
dmfs
added a commit
that referenced
this issue
Jul 11, 2019
The `fastForward` method didn't sort the instances array after fast forwarding all instance sources. The `fillInstanceCache` method, however, expects the array to be sorted by the next instance each source would return.
dmfs
added a commit
that referenced
this issue
Jul 11, 2019
The `fastForward` method didn't sort the instances array after fast forwarding all instance sources. The `fillInstanceCache` method, however, expects the array to be sorted by the next instance each source would return.
fixed in 0.11.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I discovered that when using two or more recurrence rules within a single RecurrenceSetIterator, calling next() on the iterator sometimes returns the next few date/times out of order.
A reproducible example is below, where we have two recurrence rules (every 5 hours and every day), both with a start time of 1/1/2019 at 12am. When fast-forwarding the iterator to 10pm, next() returns 1/2/2019 at 1am instead of 1/2/2019 at 12am. Calling next() again, however, returns 1/2/2019 at 12am, which is backwards in time from what it returned previously.
The text was updated successfully, but these errors were encountered: