Django internal datetime handling

3 views
Skip to first unread message

George Song

unread,
Mar 22, 2009, 6:31:47 PM3/22/09
to Django developers
I have just submitted a proposal on Trac <http://
code.djangoproject.com/ticket/10587> regarding how Django should
handle datetimes.

Quick summary:

1. PostgreSQL should not have time zone set, or have time zone set to
'UTC'.

2. Django should store all datetime on DB backends as '''naive UTC'''
datetime.

3. `settings.TIME_ZONE` becomes a site-wide runtime typecast
directive. This way `settings.TIME_ZONE` can be optional if someone
doesn't care about time zones in their application. In that case it
feels more natural to operate in the timezone of the server hosting
Django.

I chose to post it to Trac because of formatting issues, so a more
thorough description is there:
<http://code.djangoproject.com/ticket/10587>

--
George
Reply all
Reply to author
Forward
0 new messages