Skip to content

Commit

Permalink
fix: google calendar sync times (#18384) (#18394)
Browse files Browse the repository at this point in the history
(cherry picked from commit 77ae997)

Co-authored-by: PeterG <this-gavagai@users.noreply.github.com>
  • Loading branch information
mergify[bot] and this-gavagai committed Oct 12, 2022
1 parent e0d6d0b commit 7c9ee6d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -517,10 +517,10 @@ def google_calendar_to_repeat_on(start, end, recurrence=None):
repeat_on = {
"starts_on": get_datetime(start.get("date"))
if start.get("date")
else parser.parse(start.get("dateTime")).utcnow(),
else parser.parse(start.get("dateTime")).astimezone().replace(tzinfo=None),
"ends_on": get_datetime(end.get("date"))
if end.get("date")
else parser.parse(end.get("dateTime")).utcnow(),
else parser.parse(end.get("dateTime")).astimezone().replace(tzinfo=None),
"all_day": 1 if start.get("date") else 0,
"repeat_this_event": 1 if recurrence else 0,
"repeat_on": None,
Expand Down

0 comments on commit 7c9ee6d

Please sign in to comment.