diff options
| author | 2010-08-07 13:31:15 +0200 | |
|---|---|---|
| committer | 2010-08-07 13:31:15 +0200 | |
| commit | e055d2acc40df00f9b3d0af08ea89a7e64d25a58 (patch) | |
| tree | ad6142c7f4d57390ce17f70c3e9e0d37b45fc4b8 /module/web | |
| parent | Use local timezone settings if django version >= 1.2 (diff) | |
| download | pyload-e055d2acc40df00f9b3d0af08ea89a7e64d25a58.tar.xz | |
Set default timezone on windows every time
Diffstat (limited to 'module/web')
| -rw-r--r-- | module/web/settings.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/module/web/settings.py b/module/web/settings.py index e135825d1..81d6cb8e8 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -4,7 +4,7 @@  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
 -import os.path
 +import os
  import sys
  import django
 @@ -76,7 +76,7 @@ DATABASE_PORT = ''             # Set to empty string for default. Not used with  # although not all choices may be available on all operating systems.
  # If running in a Windows environment this must be set to the same as your
  # system time zone.
 -if django.VERSION[0] > 1 or django.VERSION[1] > 1:
 +if (django.VERSION[0] > 1 or django.VERSION[1] > 1) and os.name != "nt":
      zone = None
  else:
      zone = 'Europe'
 | 
