diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-26 15:33:27 +0000 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-26 15:33:27 +0000 |
commit | 46cc7021a8ab60190d81e9d7e039cd84efbafb23 (patch) | |
tree | 5f809c291af834fb5a2cd2d122ca849c26062ae3 /django/db/backends/postgresql/base.py | |
parent | 0ff624a3cb075800e6c84cf80e36b085e23cf270 (diff) | |
download | django-46cc7021a8ab60190d81e9d7e039cd84efbafb23.tar.gz |
Fixed #1480 -- Added the ability to use the system timezone. Thanks to Ramiro Morales for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql/base.py')
-rw-r--r-- | django/db/backends/postgresql/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 500ba5ce03..ec59dd6848 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -119,7 +119,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): set_tz = False settings_dict = self.settings_dict if self.connection is None: - set_tz = True + set_tz = settings_dict.get('TIME_ZONE') if settings_dict['NAME'] == '': from django.core.exceptions import ImproperlyConfigured raise ImproperlyConfigured("You need to specify NAME in your Django settings file.") |