From 6c61daf1c58c1db899e5075d7470d65a2253e08d Mon Sep 17 00:00:00 2001 From: charliep Date: Mon, 11 Mar 2024 10:25:48 +0100 Subject: [PATCH 1/2] Update views.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Passage à la time zone Europe/Paris --- apps/activity/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/activity/views.py b/apps/activity/views.py index 38b87964..6a2b21ca 100644 --- a/apps/activity/views.py +++ b/apps/activity/views.py @@ -315,8 +315,8 @@ X-WR-CALNAME:Kfet Calendar NAME:Kfet Calendar CALSCALE:GREGORIAN BEGIN:VTIMEZONE -TZID:Europe/Berlin -X-LIC-LOCATION:Europe/Berlin +TZID:Europe/Paris +X-LIC-LOCATION:Europe/Paris BEGIN:DAYLIGHT TZOFFSETFROM:+0100 TZOFFSETTO:+0200 From 581715d8043f238a476065a7e4d78e5020304308 Mon Sep 17 00:00:00 2001 From: korenstin Date: Wed, 31 Jul 2024 23:18:41 +0200 Subject: [PATCH 2/2] Fix #95 (calendar) --- apps/activity/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/activity/views.py b/apps/activity/views.py index 6a2b21ca..f172309c 100644 --- a/apps/activity/views.py +++ b/apps/activity/views.py @@ -338,10 +338,10 @@ END:VTIMEZONE DTSTAMP:{"{:%Y%m%dT%H%M%S}".format(activity.date_start)}Z UID:{md5((activity.name + "$" + str(activity.id) + str(activity.date_start)).encode("UTF-8")).hexdigest()} SUMMARY;CHARSET=UTF-8:{self.multilines(activity.name, 75, 22)} -DTSTART;TZID=Europe/Berlin:{"{:%Y%m%dT%H%M%S}".format(activity.date_start)} -DTEND;TZID=Europe/Berlin:{"{:%Y%m%dT%H%M%S}".format(activity.date_end)} +DTSTART:{"{:%Y%m%dT%H%M%S}Z".format(activity.date_start)} +DTEND:{"{:%Y%m%dT%H%M%S}Z".format(activity.date_end)} LOCATION:{self.multilines(activity.location, 75, 9) if activity.location else "Kfet"} -DESCRIPTION;CHARSET=UTF-8:""" + self.multilines(activity.description.replace("\n", "\\n"), 75, 26) + """ +DESCRIPTION;CHARSET=UTF-8:""" + self.multilines(activity.description.replace("\n", "\\n"), 75, 26) + f""" -- {activity.organizer.name} END:VEVENT """