Skip to content

Conversation

@maknapp
Copy link
Collaborator

@maknapp maknapp commented Nov 13, 2025

Weekly rules that include BYMONTH were only including weeks that start inside the given months. This fix checks the end of the week also to see if any part of the week is inside the given months.

The date will not always be the start of a week, since the reference date is first, but extra months are filtered out later.

Fixes #879

Weekly rules that include BYMONTH were only including weeks that
start inside the given months. This fix checks the end of the week
also to see if any part of the week is inside the given months.

The date will not always be the start of a week, since the
reference date is first, but extra months are filtered out later.

Fixes ical-org#879
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #880   +/-   ##
=====================================
  Coverage   68.1%   68.2%           
=====================================
  Files        115     115           
  Lines       4354    4357    +3     
  Branches    1004    1007    +3     
=====================================
+ Hits        2967    2970    +3     
  Misses      1028    1028           
  Partials     359     359           
Files with missing lines Coverage Δ
Ical.Net/Evaluation/RecurrencePatternEvaluator.cs 90.9% <100.0%> (+0.1%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@axunonb axunonb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks!

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

Successfully merging this pull request may close these issues.

Unexpected output when combing BYDAY and BYMONTH options

2 participants