ical.js icon indicating copy to clipboard operation
ical.js copied to clipboard

Recurrence Missing instances if bymonthday is not sorted

Open arunpandianp opened this issue 8 years ago • 2 comments

recur = ICAL.Recur.fromData({
 freq:"MONTHLY",
 bymonthday: [3, 2, 1],
 until: "2017-07-02"
}); // 1st, 2nd, 3rd of every month till 2017-07-02
start = ICAL.Time.fromDateString("2017-07-01") 
it = recur.iterator(start)
console.log('Expected 2017-07-01, Actual ' + it.next()); //null
console.log('Expected 2017-07-02, Actual ' + it.next()); // null

https://jsfiddle.net/jkcamnjx/3/

arunpandianp avatar Aug 04 '17 18:08 arunpandianp

@arunpandianp, do you want to fix this bug yourself?

mschroeder avatar Aug 13 '17 12:08 mschroeder

@mschroeder yeah, i can look into it.

arunpandianp avatar Aug 15 '17 13:08 arunpandianp

This should have been fixed with #666.

mschroeder avatar May 05 '24 21:05 mschroeder