From e055d2acc40df00f9b3d0af08ea89a7e64d25a58 Mon Sep 17 00:00:00 2001 From: Gregy Date: Sat, 7 Aug 2010 13:31:15 +0200 Subject: Set default timezone on windows every time --- module/web/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module') 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' -- cgit v1.2.3