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
This commit is contained in:
Russell Keith-Magee 2010-02-26 15:33:27 +00:00
parent 0ff624a3cb
commit 46cc7021a8
6 changed files with 38 additions and 22 deletions

View file

@ -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.")