rrulestr constructor with options doesn't flow through DTStart or TZID
vdudas opened this issue · comments
vdudas commented
- [✅] Verify that you've looked through existing issues for duplicates before
creating a new one - [✅] Code sample reproducing the issue. Be sure to include all input values you
are using such as the exact RRule string and dates.
// These two constructor calls should be equivalent
rrulestr(
"FREQ=WEEKLY;WKST=SU;COUNT=2;INTERVAL=1;BYDAY=MO,TU\n" +
"EXDATE;TZID=America/Edmonton:20220502T090000"
,{dtstart: datetime(2022, 5, 2, 9, 0)}).all()
rrulestr(
"DTSTART;TZID=America/Edmonton:20220502T090000\n" +
"FREQ=WEEKLY;WKST=SU;COUNT=2;INTERVAL=1;BYDAY=MO,TU\n" +
"EXDATE;TZID=America/Edmonton:20220502T090000").all()
- [✅] Expected output
Should only return one element array with 20220503T090000 in it
- [✅] Actual output
First constructor returns an event that is at current date/time
- [✅] The version of
rrule
you are using
2.8.1
- [✅] Your operating system
Windows 11
- [✅] Your local timezone (run
$ date
from the command line
of the machine showing the bug)
Americas/Edmonton