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

Issue with tzlocal==5.0 #120

Open
LFBianchi opened this issue May 15, 2023 · 0 comments
Open

Issue with tzlocal==5.0 #120

LFBianchi opened this issue May 15, 2023 · 0 comments

Comments

@LFBianchi
Copy link

LFBianchi commented May 15, 2023

Apparently the newest version of tzlocal (5.0) is causing an error on the parse function.

Python 3.9

Environment:

Delorean==1.0.0
tzlocal==5.0

Run:

from delorean import parse                                                                                                                                                                                                                                                                                                                      print(parse("2023-05-15T00:00:00.000Z", yearfirst=True, dayfirst=False))

Error:

AttributeError("'ZoneInfo' object has no attribute 'localize'")

If we change the environment to:

Delorean==1.0.0
tzlocal==4.3

The issue is resolved

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

1 participant