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

RRULE until values must be specified in UTC tz #1661

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

matiasb
Copy link
Contributor

@matiasb matiasb commented Mar 29, 2023

When generating ical information for an event, the RRULE until value must be specified in UTC.

Related to https://github.com/grafana/support-escalations/issues/5426.

@matiasb matiasb requested a review from a team March 29, 2023 18:40
@matiasb matiasb added the pr:no public docs Added to a PR that does not require public documentation updates label Mar 29, 2023
Copy link
Member

@vstpme vstpme left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Only one minor question / suggestion.

@@ -584,8 +584,8 @@ def event_ical_rules(self):
if self.week_start is not None:
rules["wkst"] = CustomOnCallShift.ICAL_WEEKDAY_MAP[self.week_start]
if self.until is not None:
time_zone = self.time_zone if self.time_zone is not None else "UTC"
rules["until"] = self.convert_dt_to_schedule_timezone(self.until, time_zone)
# RRULE UNTIL values must be specified in UTC when DTSTART is timezone-aware
Copy link
Member

Choose a reason for hiding this comment

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

Maybe a good place to add a TODO on supporting timezone-aware RRULE UNTIL?

@joeyorlando joeyorlando merged commit f0c73cc into dev Mar 30, 2023
@joeyorlando joeyorlando deleted the matiasb/rrule-until-utc-required branch March 30, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants