ical.js
ical.js copied to clipboard
Recurrence Missing instances if bymonthday is not sorted
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, do you want to fix this bug yourself?
@mschroeder yeah, i can look into it.
This should have been fixed with #666.