SourceForge has been redesigned. Learn more.
Close

#151 Recur.getDates() returns duplicates

open
nobody
None
5
2012-06-22
2012-06-22
No

When setpos rules include both positive and negative numbers, getDates() may return duplicate dates.
This happens for instance when the last Sunday of a month is also the 4th Sunday of the month:
recurrence: FREQ=MONTHLY;UNTIL=20120923T000000;INTERVAL=1;BYDAY=SU;BYSETPOS=4,-1
getDates() returns: 20120624T140000,20120624T140000,20120722T140000,20120729T140000,20120826T140000,20120826T140000
Likely culprit: net.fortuna.ical4j.model.Recur.applySetPosRules()

Discussion


Log in to post a comment.