Closed srikrsna closed 5 years ago
I can't comment to what the expected functionality is, but I think you can get what you want by using the After
method instead.
Something like:
ns.After(time.Now(), false)
and iterating over it that way.
All I am saying is that setting DTStart
has changed the output of the Recurrence
function but didn't really update the actual rrule set.
I am saying third should be the expected output and the second output is wrong.
And After
does not return the same output for more complex rules.
Sorry I reviewed the code again and saw my mistake. I agree that what you are proposing should be the output.
The code actually doesn't use the DTStart to do anything.
Shall I send a PR correcting it?
Hi, Thank you for this. It's been really helpful for us.
One issue I've noticed was that changing the
DTStart
for an rrule set does not change the actual values generated by the iterator. For example,This prints out the following,
As you can see changing the
DTStart
changed the recurrence but did not have any impact on the iterator. If this is the expected behaviour, it should be documented. If not I am more than happen to try and fix this.