We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a2598 commit 53f2571Copy full SHA for 53f2571
1 file changed
apps/events/models.py
@@ -106,8 +106,8 @@ def end_datetime(self):
106
return datetime.datetime.combine(self.start_date, end_time)
107
108
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")
+ start_datetime = self.start_datetime().strftime("%Y%m%dT%H%M%SZ")
+ end_datetime = self.end_datetime().strftime("%Y%m%dT%H%M%SZ")
111
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}"
112
113
@classmethod
0 commit comments