diff --git a/backend/backend_api/models.py b/backend/backend_api/models.py index 7ad9d8e..a471002 100644 --- a/backend/backend_api/models.py +++ b/backend/backend_api/models.py @@ -151,8 +151,8 @@ def google_calendar_link(self): base_url = "https://www.google.com/calendar/render?action=TEMPLATE" workshop_title = escape(self.name) workshop_description = escape(self.desc) - start_datetime = (self.start_date + timedelta(hours=3, minutes=30)).strftime("%Y%m%dT%H%M%S") - end_datetime = (self.end_date + timedelta(hours=3, minutes=30)).strftime("%Y%m%dT%H%M%S") + start_datetime = self.start_date.strftime("%Y%m%dT%H%M%SZ") + end_datetime = self.end_date.strftime("%Y%m%dT%H%M%SZ") teachers_names = " ".join([teacher.name for teacher in self.teachers.all()]) event_details = f"Teachers: {teachers_names}\nDescription: {workshop_description}"