1
0
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:
Russell Keith-Magee
2010-02-26 15:38:50 +00:00
parent 0c2d3ff7a1
commit b6bd766d88
6 changed files with 38 additions and 22 deletions

View File

@@ -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()