Marketplace, CSS, iCal and a lot of things... #4

Closed
valentin wants to merge 59 commits from dev into main
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 20c2e68797 - Show all commits

View File

@ -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()))