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

358 Bugfix Broker::processMessageReply #651

Conversation

phil-davis
Copy link
Contributor

Before this commit processMessageReply did not work for exceptions with a reccurent id in an other timezone than the dtstart of the master event.

This is a rebased version of PR #360

Before this commit processMessageReply did not work for exceptions with
a reccurent id in an other timezone than the dtstart of the master event.
@phil-davis phil-davis self-assigned this May 8, 2024
Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.78%. Comparing base (f14092f) to head (42eb67f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #651   +/-   ##
=========================================
  Coverage     98.78%   98.78%           
- Complexity     1866     1867    +1     
=========================================
  Files            71       71           
  Lines          5249     5253    +4     
=========================================
+ Hits           5185     5189    +4     
  Misses           64       64           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +378 to +379
// This is a reply to 1 instance of a recurring event. This should
// automatically create an exception.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand why this comment has "This should automatically create an exception."

The source code now handles this situation.
TZID=Asia/Ho_Chi_Minh:20140725T110000 is the event recurrence of DTSTART;TZID=America/Toronto:20140724T000000 that happens the next day, 20140725.

America/Toronto is UTC-4, Asia/Ho_Chi_Minh is UTC+7. So they are 11 hours apart. 0000 in Toronto is the same time as 1100 in Ho Chi Minh City.

Comment on lines +441 to +442
// This is a reply to 1 instance of a recurring event. This should
// automatically create an exception.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand why this comment has "This should automatically create an exception."

Similar to my other comment above, America/Toronto is UTC-4. So 0000 in Toronto is the same as 040000Z

I don't expect any exception to happen.

@phil-davis
Copy link
Contributor Author

I see that @gharlan has made #652 - I will have a look at that...

@phil-davis
Copy link
Contributor Author

Closing in favor of #652 - IMO that is a cleaner solution.

@phil-davis phil-davis closed this May 8, 2024
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.

1 participant