rrule icon indicating copy to clipboard operation
rrule copied to clipboard

Need Help: How to set an event weekly to the past and to the future?

Open meness opened this issue 4 years ago • 1 comments

At the moment, the minimum date is now, but I want to add an event to the past and to the future without any limit. How can I do this?

new RRule({
            freq: RRule.WEEKLY,
            byweekday: RRule[weekDayName.substr(0, 2).toUpperCase()],
          })

Using dtstart with a date at 1970-01-01 has a problem with timezones with daylight time.

meness avatar Aug 15 '20 09:08 meness

I've found that doing rrule.options.dtstart = new Date("1970-01-01"); should get you somewhat closer; it seems to default the dtstart to today.

jamesfulford avatar Apr 17 '24 03:04 jamesfulford