It appears that if dtstart is in the week before the first occurrence, then it will skip that occurrence, but if dtstart is in the same week then it will not. Any idea why this would be happening? Would be happy to open a PR.
import { RRule } from 'rrule'
const options = {
freq: RRule.WEEKLY,
interval: 2,
count: 2,
byweekday: [RRule.TU]
}
const rule1 = new RRule({
...options,
dtstart: new Date(Date.UTC(2019, 10, 3))
})
const rule2 = new RRule({
...options,
dtstart: new Date(Date.UTC(2019, 10, 4))
})
// rule1 and rule2 are across a week boundary
// rule1 results start a week later than rule2
console.log(rule1.all().map(toISOString))
console.log(rule2.all().map(toISOString))
function toISOString(d) {
return d.toISOString()
}
It appears that if
dtstart
is in the week before the first occurrence, then it will skip that occurrence, but ifdtstart
is in the same week then it will not. Any idea why this would be happening? Would be happy to open a PR.https://codesandbox.io/s/rrule-interval-test-806pd
Expected output:
Actual output:
rrule@2.6.2 macOS 10.14.6 PDT