Skip to content

rule.toText() to respect BYSETPOS #436

Open
@Primajin

Description

@Primajin

Reporting an issue

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

  • Verify that you've looked through existing issues for duplicates before
    creating a new one
    Edit: later i found toText does not display the bysetpos values #75
  • Code sample reproducing the issue. Be sure to include all input values you
    are using such as the exact RRule string and dates.
  • Expected output
    RRULE:FREQ=MONTHLY;INTERVAL=1;WKST=MO;BYDAY=SU;BYSETPOS=2 --> every month on the second Sunday
    RRULE:FREQ=MONTHLY;INTERVAL=1;WKST=MO;BYDAY=SU;BYSETPOS=-1 --> every month on the last Sunday
    Screenshot 2020-11-11 at 17 39 45
    (Google Calendar)
  • Actual output
    RRULE:FREQ=MONTHLY;INTERVAL=1;WKST=MO;BYDAY=SU;BYSETPOS=2 --> every month on Sunday
    RRULE:FREQ=MONTHLY;INTERVAL=1;WKST=MO;BYDAY=SU;BYSETPOS=-1 --> every month on Sunday

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

  • The version of rrule you are using
    Online http://jakubroztocil.github.io/rrule/ --> I guess that is latest
  • Your operating system
    Chrome Version 88.0.4322.0 (Official Build) canary (x86_64) on MacOSX
  • Your local timezone (run $ date from the command line
    of the machine showing the bug)
    CET (Central European Time)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions