changeset 272:f62ff36b62c1

Issues to anticipate with timezones
author Sylvain Beucler <beuc@beuc.net>
date Thu, 12 Aug 2010 23:45:48 +0200
parents 4f105a4ac86d
children 62f8e93ade0e
files TODO doc/DJANGO settings_default.py
diffstat 3 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/TODO
+++ b/TODO
@@ -37,7 +37,7 @@
 
 	[ ] Profile/resume
 
-	[ ] Timezone
+	[ ] Timezone (cf. doc/DJANGO)
 
     [X] Set language
 
--- a/doc/DJANGO
+++ b/doc/DJANGO
@@ -33,3 +33,15 @@
 - http://code.google.com/p/django-treemenus/ may be nice to implement
   the left menu, which is mostly static.  The context menu however is
   dynamic so it's not a good idea to implement it with TreeMenus.
+
+- Timezones: Django's support for timezones is disappointing, we need
+  to work around its deficiencies.  Meanwhile _set your
+  settings.TIME_ZONE to 'UTC'_.
+
+  Modules:
+  http://github.com/brosner/django-timezones
+  http://reliablybroken.com/b/2009/08/django-and-time-zone-aware-date-fields-redux/
+
+  Discussions:
+  http://code.djangoproject.com/ticket/2626
+  http://stackoverflow.com/questions/1061911/django-with-system-timezone-setting-vs-users-individual-timezones
--- a/settings_default.py
+++ b/settings_default.py
@@ -26,7 +26,7 @@
 # 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.
-TIME_ZONE = 'America/Chicago'
+TIME_ZONE = 'UTC'
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html