Skip to content

Wrong generation with BYSETPOS and MONTHLY #560

@Skulli

Description

@Skulli

Following rule

FREQ=MONTHLY;INTERVAL=1;BYSETPOS=1;BYDAY=SU

used with IceCube::Rule.from_ical(...)

Results should look like (monthly, every first sunday of the month)

https://jkbrzt.github.io/rrule/#/rfc/RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=1;BYDAY=SU

With IceCube i get something like (occurrences)

[2024-09-01 00:00:00 +0200,
2024-09-08 00:00:00 +0200,
2024-09-15 00:00:00 +0200,
2024-09-22 00:00:00 +0200,
2024-09-29 00:00:00 +0200,
2024-10-06 00:00:00 +0200,
2024-10-13 00:00:00 +0200, ...

weekly repetitions.

Here the to_hash from the schedule

{:start_time=>2024-09-01 00:00:00 +0200, :rrules=>[{:validations=>{:day=>[0]}, :rule_type=>"IceCube::MonthlyRule", :interval=>1}], :rtimes=>[], :extimes=>[]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions