From 7affe68715c62006374a15e79f0140e5dfa40367 Mon Sep 17 00:00:00 2001 From: AlirezaYousefpour <93353496+AlirezaYousefpourM@users.noreply.github.com> Date: Wed, 15 Jan 2025 02:21:05 +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 a471002..1f27680 100644 --- a/backend/backend_api/models.py +++ b/backend/backend_api/models.py @@ -223,8 +223,8 @@ def google_calendar_link(self): base_url = "https://www.google.com/calendar/render?action=TEMPLATE" presentation_title = escape(self.name) presentation_description = escape(self.desc) - start_datetime = self.start_date.strftime("%Y%m%dT%H%M%S") - end_datetime = self.end_date.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") presenters_names = " ".join([presenter.name for presenter in self.presenters.all()]) event_details = f"Presenters: {presenters_names}\nDescription: {presentation_description}"