-
Notifications
You must be signed in to change notification settings - Fork 247
Fix GetOccurrences() not properly dealing with periodStart's TZ
#842
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #842 +/- ##
=======================================
+ Coverage 67.7% 67.7% +0.1%
=======================================
Files 106 106
Lines 4226 4224 -2
Branches 952 951 -1
=======================================
+ Hits 2859 2860 +1
Misses 1038 1038
+ Partials 329 326 -3
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@ical-org/maintainers TBD
Note: The code is based on #836, so that should be merged first. Only the last two commits are specific to this PR, the rest comes from the other one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Together with the new unit tests we should have all variants well covered, thanks!
This comment should be removed
| // In the first step, we work with DateTime values, so we need to convert the CalDateTime to DateTime |
Agree See also: #840 (comment) |
Ical.Net.Tests/RecurrenceTests.cs
Outdated
| var cal = new Calendar(); | ||
| cal.Events.Add(evt); | ||
|
|
||
| var firstFewOcccurrences = cal.GetOccurrences().Take(3).ToList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
firstFewOccurrences
The merge-base changed after approval.
2101064 to
d20cf38
Compare
90e536a to
5ef193f
Compare
|
axunonb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Ready for release 5.1.0 now? |



GetOccurrences()used to ignore the TZ ofperiodStart, which is fixed by this PR.fixes #840