jkbrzt / rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
https://jkbrzt.github.io/rrule
Other
3.27k stars 506 forks source link

Trying to generate quarterly dates returns weekly, but every three months when day specified #536

Open scottlovegrove opened 2 years ago

scottlovegrove commented 2 years ago

I'm trying to generate dates that are every three months (quarterly), so I've chose MONTHLY with an interval of 3 and this does then work, however, as soon as I then add a day (eg, every three months on Tuesday), then I start getting weekly results but every three months image

This is not what I'm looking for.

The exact RRule string that's generated is RRULE:FREQ=MONTHLY;COUNT=30;INTERVAL=3;WKST=MO;BYDAY=TU

What I would have expected in the above example is the 19th July, followed by the 18th October, followed by the 17th January.

This is using RRule.js version 2.6.4. I know this isn't the latest, but if I use the latest, I run into this issue image FWIW, I have tried it with 2.7.1 and it does the same thing (with the quarterly dates).

This is all being done on Ubuntu (Windows with WSL2), but the problem can be seen on the rrule demo site (as linked above).

Reporting an issue

Thank you for taking an interest in rrule! Please include the following in your report: