Monday, 24 July 2023

What is causing `tzlocal` to throw `Please use a timezone in the form of Continent/City. tzlocal() does not support non-zoneinfo timezones like UTC`?

Please use a timezone in the form of Continent/City. tzlocal() does not support non-zoneinfo timezones like UTC

This was raised by requests.raise_for_status()

My settings.py:

USE_TZ = True
TIME_ZONE = 'UTC'

What is causing tzlocal to throw this? I couldn't find this error in other places. It usually complains about specific timezones but not UTC



from What is causing `tzlocal` to throw `Please use a timezone in the form of Continent/City. tzlocal() does not support non-zoneinfo timezones like UTC`?

No comments:

Post a Comment