python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

ZoneInfo object has no attribute Zone exception

Open geoffda opened this issue 1 year ago • 3 comments

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.

geoffda avatar Jan 15 '24 18:01 geoffda

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

topcats avatar Jan 16 '24 10:01 topcats

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

This worked for me, thanks!

Invincibear avatar Jan 16 '24 20:01 Invincibear

going back to tzlocal=4.3.1 works too...

MarcoMiano avatar Jan 24 '24 17:01 MarcoMiano