O365 / python-o365

A simple python library to interact with Microsoft Graph and Office 365 API
Apache License 2.0
1.65k stars 419 forks source link

Fix get recurring instances events invalid start/end time bug #1039

Closed Invincibear closed 8 months ago

Invincibear commented 8 months ago

Converts date objects into datetime objects in Event.get_occurrences() to add missing time parameters

  File "/var/www/domain.tld/backend/.venv/lib/python3.11/site-packages/O365/calendar.py", line 1378, in get_occurrences
    if start.tzinfo is None:
       ^^^^^^^^^^^^
AttributeError: 'datetime.date' object has no attribute 'tzinfo'
alejcas commented 8 months ago

Thanks!