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.24k stars 506 forks source link

Missing dates for weekly with count #597

Open dgastudio opened 10 months ago

dgastudio commented 10 months ago

Hello

Maybe I'm missing something, but I can't understand the logic of the rrule, sorry.

example (using demo site):

DTSTART:20230830T222800Z RRULE:FREQ=WEEKLY;COUNT=1;INTERVAL=1;WKST=MO;BYDAY=MO,TU

CleanShot 2023-08-31 at 22 35 32@2x

So, as far as I understand, based on this rrule, 2 dates need to be created: next monday and next tuesday. But in the given example, there is only one date (Monday).

Why is this happening?

I will be very grateful for any advice. Thank you

tomaszbieganowski commented 10 months ago

count=2