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

toText - missing "on" when describing FREQ=YEARLY with BYMONTH #542

Open salty-horse opened 2 years ago

salty-horse commented 2 years ago

Using latest rrule 2.7.1

When describing FREQ=YEARLY;INTERVAL=3;BYMONTH=10;BYDAY=TU, the output is:

every 3 years October on Tuesday

I think there should be on/in before "October"

Example:

> require('rrule').rrulestr('FREQ=YEARLY;INTERVAL=3;BYMONTH=10;BYDAY=TU').toText()
'every 3 years October on Tuesday'