Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZoneInfo object has no attribute Zone exception #1044

Open
geoffda opened this issue Jan 15, 2024 · 3 comments
Open

ZoneInfo object has no attribute Zone exception #1044

geoffda opened this issue Jan 15, 2024 · 3 comments

Comments

@geoffda
Copy link

geoffda commented Jan 15, 2024

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.

@topcats
Copy link

topcats commented Jan 16, 2024

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

@Invincibear
Copy link
Contributor

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!

@MarcoMiano
Copy link

going back to tzlocal=4.3.1 works too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants