Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rrulestr constructor with options doesn't flow through DTStart or TZID #612

Open
vdudas opened this issue Jan 3, 2024 · 0 comments
Open

Comments

@vdudas
Copy link

vdudas commented Jan 3, 2024

  • [✅] 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant