92e63fc232
https://www.djangoproject.com/weblog/2023/sep/18/django-50-alpha-1-released/ https://docs.djangoproject.com/en/dev/releases/5.0/
13 lines
728 B
Diff
13 lines
728 B
Diff
diff --git a/django/conf/__init__.py b/django/conf/__init__.py
|
|
index 22f1eab..3a752d1 100644
|
|
--- a/django/conf/__init__.py
|
|
+++ b/django/conf/__init__.py
|
|
@@ -208,7 +208,7 @@ class Settings:
|
|
if hasattr(time, "tzset") and self.TIME_ZONE:
|
|
# When we can, attempt to validate the timezone. If we can't find
|
|
# this file, no check happens and it's harmless.
|
|
- zoneinfo_root = Path("/usr/share/zoneinfo")
|
|
+ zoneinfo_root = Path("@zoneinfo@")
|
|
zone_info_file = zoneinfo_root.joinpath(*self.TIME_ZONE.split("/"))
|
|
if zoneinfo_root.exists() and not zone_info_file.exists():
|
|
raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)
|