Skip to content
Snippets Groups Projects
Verified Commit 9cd6d02e authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix calendar parser

parent ffdf9446
No related branches found
No related tags found
2 merge requests!973Release,!972Add calendar to elections page
Pipeline #18156 passed
......@@ -528,7 +528,18 @@ def parse_rrule(component):
# Add exdates to the rruleset
for exd in extract_exdates(component):
if type(dtstart) is date:
rule.exdate(exd.replace(tzinfo=None))
rule.exdate(
datetime(
year=exd.year,
month=exd.month,
day=exd.day,
hour=0,
minute=0,
second=0
)
if isinstance(exd, date)
else exd
)
else:
rule.exdate(exd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment