python-o365
python-o365 copied to clipboard
ZoneInfo object has no attribute Zone exception
windows_tz.py, line 638 is now throwing 'ZoneInfo object has no attribute Zone' exception when Calendar.new_event is called.
iana_tz.zone if isinstance(iana_tz, tzinfo) else iana_tz)
Rolling back to o365 2.0.31 resolves the issue. I tried independently rolling back tzlocal to version 4.3.1, but apparently >=5.0 is required in the latest o365.
hi there
yes they have changed the zoneinfo item
if you edit windows_tz.py and change the iana_tz.zone to iana_tz.key it works.
there are 2 places to change this
hi there
yes they have changed the zoneinfo item
if you edit windows_tz.py and change the
iana_tz.zonetoiana_tz.keyit works. there are 2 places to change this
This worked for me, thanks!
going back to tzlocal=4.3.1 works too...