From bfab7429e6160694fd8dd63cd923614f347cb88d Mon Sep 17 00:00:00 2001 From: AlirezaYousefpour <93353496+AlirezaYousefpourM@users.noreply.github.com> Date: Wed, 15 Jan 2025 02:15:59 +0330 Subject: [PATCH] Update models.py --- backend/backend_api/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}"