From 20c2e687973245354c48bd0ec495a9ce43da8497 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= <valentin@mp2i-vms.fr>
Date: Tue, 7 May 2024 00:51:00 +0200
Subject: [PATCH] Add datetime support

---
 colloscope/icalexport.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/colloscope/icalexport.py b/colloscope/icalexport.py
index 7c43899..d573563 100644
--- a/colloscope/icalexport.py
+++ b/colloscope/icalexport.py
@@ -1,5 +1,5 @@
 from datetime import date, time, datetime, timedelta
-from pytz import timezone
+import pytz
 from uuid import uuid4
 from os import path
 from icalendar import Calendar, Event, vCalAddress, vText
@@ -37,10 +37,11 @@ def to_calendar(student, term, include_EDT: bool = True):
         event.add("summary", summary)
 
         start = colle.datetime
+        print(start)
         fin = start + colle.slot.duration
 
-        event.add("dtstart", start, parameters={"tzid": LOCAL_TZ})
-        event.add("dtend", fin, parameters={"tzid": LOCAL_TZ})
+        event.add("dtstart", start)
+        event.add("dtend", fin)
         event.add("dtstamp", datetime.now())
         event.add("uid", str(uuid4()))