mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.1.X] Fixed #1480 -- Added the ability to use the system timezone. Thanks to Ramiro Morales for the patch.
Backport of r12602 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -19,7 +19,7 @@ Test the globbing of INSTALLED_APPS.
|
||||
>>> sys.path = old_sys_path
|
||||
|
||||
# Undo a side-effect of installing a new settings object.
|
||||
>>> if hasattr(time, "tzset"):
|
||||
>>> if hasattr(time, "tzset") and old_tz:
|
||||
... os.environ["TZ"] = old_tz
|
||||
... time.tzset()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user