Open mmulich opened 3 years ago
There was an api change in tzinfo starting with version 3 it no longer returns a pytz object but rather a zoneinfo object. Delorean will either need to update to handle the new object or limit tzlocal to <= 2.1
I just ran into this issue. Friday afternoon is always a great time to debug issues 😄
I'm running into an error when using Delorean within a Django app context. This only happens when the Django app is loaded. For example, in the interpreter setup by django:
This results in:
The same procedure done outside of django results in a successful parsing of the datetime.
Note, it's the same environment, just not within the django shell setup.
AFAICT, the only difference is that Django is using a
zoneinfo
timezone instance, while pure python is finding any using apytz
timezone instance.