[x] Code sample reproducing the issue. Be sure to include all input values you
are using such as the exact RRule string and dates.
`exports.rRuleGetOccurrenceDates = async (pattern, queryStartDate, queryEndDate, maxCount) => {
try {
if (!queryStartDate) {
queryStartDate = new Date();
queryStartDate = new Date(queryStartDate.setUTCFullYear(queryStartDate.getUTCFullYear() - 1));
}
if (!queryEndDate) {
queryEndDate = new Date();
queryEndDate = new Date (queryEndDate.setUTCFullYear(queryEndDate.getUTCFullYear() + 1));
}
queryStartDate.setUTCHours(0)
queryStartDate.setUTCMinutes(0, 0, 0)
queryEndDate.setUTCHours(0)
queryEndDate.setUTCMinutes(0, 0, 0);
if (!maxCount) {
maxCount = 250;
}
const rule = rrulestr(`${pattern};COUNT=${maxCount}`);
return rule.between(queryStartDate, queryEndDate);
} catch (err) {
throw err
}
}`
Showing error : Invalid UNTIL value: 20120201T093000Z\nRRULE:FREQ=WEEKLY
Trying to copy this value to website https://jakubroztocil.github.io/rrule/ also showing same error :
DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY;COUNT=10
[x] Expected output
It should print occurrence dates as usual
[x] Actual output
Showing error : Invalid UNTIL value: 20120201T093000Z\nRRULE:FREQ=WEEKLY
[x] The version of rrule you are using
2.6.8
[x] Your operating system
Windows 10
[x] Your local timezone (run $ date from the command line
of the machine showing the bug)
Asia Jakarta
I found this issue : https://github.com/jakubroztocil/rrule/issues/83 but it says that it already solved.
`exports.rRuleGetOccurrenceDates = async (pattern, queryStartDate, queryEndDate, maxCount) => { try { if (!queryStartDate) { queryStartDate = new Date(); queryStartDate = new Date(queryStartDate.setUTCFullYear(queryStartDate.getUTCFullYear() - 1)); }
}`
Showing error : Invalid UNTIL value: 20120201T093000Z\nRRULE:FREQ=WEEKLY
Trying to copy this value to website https://jakubroztocil.github.io/rrule/ also showing same error :
DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY;COUNT=10
[x] Expected output It should print occurrence dates as usual
[x] Actual output Showing error : Invalid UNTIL value: 20120201T093000Z\nRRULE:FREQ=WEEKLY
[x] The version of
rrule
you are using 2.6.8[x] Your operating system Windows 10
[x] Your local timezone (run
$ date
from the command line of the machine showing the bug) Asia Jakarta