On Sep 17, 2005, at 6:27 PM, [EMAIL PROTECTED] wrote:
datetime.now() seems to be offset by 6 hours backwards after I import
one of my django models:
import datetime
datetime.datetime.now()
datetime.datetime(2005, 9, 18, 0, 21, 16, 456425)
import django.models.sitecontent
datetime.datetime.now()
datetime.datetime(2005, 9, 17, 18, 22, 1, 857014)
The model in question doesn't even have any date/datetime fields.
Any idea what could be going on here? It affects my website just the
same as interactive.
Django does some time zone stuff to make sure that settings times in
the admin makes sense; this most likely means you'll need to change
the TIME_ZONE setting in your settings file (it defaults to "America/
Chicago", which is the time zone we live in).
Jacob