Skip to content

Commit 53f2571

Browse files
committed
Fix google calendar link for events
1 parent c7a2598 commit 53f2571

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/events/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def end_datetime(self):
106106
return datetime.datetime.combine(self.start_date, end_time)
107107

108108
def get_google_calendar_url(self):
109-
start_datetime = self.start_datetime().strftime("%Y%m%dT%H%M%S%Z")
110-
end_datetime = self.end_datetime().strftime("%Y%m%dT%H%M%S%Z")
109+
start_datetime = self.start_datetime().strftime("%Y%m%dT%H%M%SZ")
110+
end_datetime = self.end_datetime().strftime("%Y%m%dT%H%M%SZ")
111111
return f"https://www.google.com/calendar/render?action=TEMPLATE&text={self.name}&details={self.description}&location={self.venue}&dates={start_datetime}%2F{end_datetime}"
112112

113113
@classmethod

0 commit comments

Comments
 (0)