summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
Diffstat (limited to 'module/web')
-rw-r--r--module/web/settings.py4
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'