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.28k stars 510 forks source link

rule.toText() to respect BYSETPOS #436

Open Primajin opened 3 years ago

Primajin commented 3 years ago

Reporting an issue

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

Screenshot 2020-11-11 at 17 49 59 Screenshot 2020-11-11 at 17 49 23

JoopStringer commented 2 years ago

Any news on this item ?

lihsit-robinexner commented 2 years ago

+1 Quote from the Docs: "For example, with RRule.MONTHLY, or with RRule.YEARLY and BYMONTH, using RRule.FR.nth(+1) or RRule.FR.nth(-1) in byweekday will specify the first or last friday of the month where the recurrence happens."

If set up in this way, the toText() returns the correct string (e.g. "Every fourth [..]", "Last Friday every [...]"). But this is really uncomfortable to implement, also it's definitely not the expected behavior...