﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37110	"Use `zoneinfo` for validating `TIME_ZONE` setting instead of `Path(""/usr/share/zoneinfo"")`"	jodizzle	jodizzle	"On my system, I receive failures in the test suite related to the setting of `TIME_ZONE`, e.g., [https://github.com/django/django/blob/3e4e0db66961a48a080ff3ff91f6c0d954261366/tests/settings_tests/tests.py#L338 `test_incorrect_timezone`].  The root issue is that Django [https://github.com/django/django/blob/3e4e0db66961a48a080ff3ff91f6c0d954261366/django/conf/__init__.py#L281 validates `TIME_ZONE` against a hardcoded ""/usr/share/zoneinfo"" path] which does not exist on my system.

Thankfully, Python has standard library support for validating timezones via the [https://docs.python.org/3/library/zoneinfo.html `zoneinfo` module].  This module was introduced in Python 3.9, meaning all modern Django versions should support it's use.

I've attached the patch that fixes my test failures.  I can submit a PR if this ticket is accepted."	Cleanup/optimization	closed	Core (Other)	dev	Normal	fixed	settings	jodizzle	Ready for checkin	1	0	0	0	0	0
