mirror of
https://github.com/django/django.git
synced 2025-09-07 19:21:13 +00:00
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:
parent
0ff624a3cb
commit
46cc7021a8
6 changed files with 38 additions and 22 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue