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

Wrong generation with BYSETPOS and MONTHLY #560

Closed
Skulli opened this issue Sep 11, 2024 · 3 comments
Closed

Wrong generation with BYSETPOS and MONTHLY #560

Skulli opened this issue Sep 11, 2024 · 3 comments

Comments

@Skulli
Copy link

Skulli commented Sep 11, 2024

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=>[]}
@Skulli
Copy link
Author

Skulli commented Sep 11, 2024

Same in combination with YEARLY

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

@Skulli Skulli closed this as completed Sep 11, 2024
@gap777
Copy link

gap777 commented Sep 20, 2024

We just ran into this as well!

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

2 participants