-
Notifications
You must be signed in to change notification settings - Fork 233
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
Bug - Invalid recurring event occurrences after New Year #342
Comments
Did you mean to create an event that's 30 days long, and recurs every other week creating a cascade of overlaps? You might want to check your expectations with respect to behavior for the event that's 30 days long... |
OK, I see what you mean. |
Updated `CalendarEvent` and `EventEvaluator` to enhance event handling, particularly around time zones and daylight saving time transitions. Key changes include: - Enabled nullable reference types in `CalendarEvent` and `EventEvaluator.` - Updated `CalendarEvent` to throw `InvalidOperationException` when trying to set both `DtEnd` and `Duration`. - Event end time and duration calculations in `EventEvaluator` reflect any DST transitions. - Added new test class `RecurrenceTests_From_Issues` to validate changes with various edge cases and scenarios. Resolves ical-org#660 Resolves ical-org#623 Resolves ical-org#671 Resolves ical-org#567 Resolves ical-org#342 Resolves ical-org#298
Updated `CalendarEvent` and `EventEvaluator` to enhance event handling, particularly around time zones and daylight saving time transitions. Key changes include: - Enabled nullable reference types in `CalendarEvent` and `EventEvaluator.` - Updated `CalendarEvent` to throw `InvalidOperationException` when trying to set both `DtEnd` and `Duration`. - Event end time and duration calculations in `EventEvaluator` reflect any DST transitions. - Added new test class `RecurrenceTests_From_Issues` to validate changes with various edge cases and scenarios. Resolves ical-org#660 Resolves ical-org#623 Resolves ical-org#671 Resolves ical-org#567 Resolves ical-org#342 Resolves ical-org#298
Creating recurring event which is repeated every two weeks for all week days and starts in the middle of the week, is supposed to return occurrences until Sunday and then skips next week.
But when week ends on 31.12.2017 then occurrences for first week of the year are created.
Steps to reproduce:
FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,TU,WE,TH,FR,SA,SU
Actual result:
09.01.2018, 10.01.2018, 11.01.2018, 12.01.2018, 13.01.2018, 14.01.2018, 22.01.2018, 23.01.2018,
24.01.2018, 25.01.2018, 26.01.2018, 27.01.2018, 28.01.2018
Expeted result:
30.12.2017, 31.12.2017, 08.01.2018, 09.01.2018, 10.01.2018, 11.01.2018, 12.01.2018, 13.01.2018, 14.01.2018, 22.01.2018, 23.01.2018, 24.01.2018, 25.01.2018, 26.01.2018, 27.01.2018, 28.01.2018
UT:
The text was updated successfully, but these errors were encountered: