Closed bw9ubwo closed 1 year ago
I experience similar issues. I've set up events with roundcube (1.4.13-6.4.el7.kolab_16) and aCalendar+ (2.6.1). On first sight, recurring events of the type "Repeat Every X day(s), for X time(s)" do work, but recurring events of the type "Repeat Every X week(s), until xxx" dont. Setting an EndDate for the "Repeat every day" causes khal to crash. Additionally if I delete specific entries from a working recurring event, khal crashes. Also events of the type "Repeat [ondate]" dont work, but this option is only available with roundcube and additionally screws up the time of the event when synced to aCalender+.
Unknown exception happened.
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/khal/khalendar/khalendar.py", line 339, in _update_vevent
update(event.raw, href=href, etag=etag, calendar=calendar)
File "/usr/lib/python3.10/site-packages/khal/khalendar/backend.py", line 239, in update
self._update_impl(vevent, href, calendar)
File "/usr/lib/python3.10/site-packages/khal/khalendar/backend.py", line 354, in _update_impl
dtstartend = expand_vevent(vevent, href)
File "/usr/lib/python3.10/site-packages/khal/icalendar.py", line 320, in expand
for date in get_dates(vevent, 'EXDATE') or ():
File "/usr/lib/python3.10/site-packages/khal/icalendar.py", line 237, in sanitize_datetime
date = events_tz.localize(date)
File "/usr/lib/python3.10/site-packages/pytz/tzinfo.py", line 317, in localize
if dt.tzinfo is not None:
AttributeError: 'datetime.date' object has no attribute 'tzinfo'
similar trouble here as well
Thank you for reporting these issues. Unfortunately, I cannot reproduce them on my end. It also looks to me, like @jdnumm and @tjensch have different issues (but the stack trace looks similar).
If those are still issues, please open new issues with the information requested by the new issue template.