It sounds similar to what I observed 
(http://code.djangoproject.com/ticket/937). Django uses os.environ['TZ'] to 
set a time zone. It is described in details here: 
http://python.org/doc/2.3.5/lib/module-time.html (see tzset()). The problem 
is it is defined for Unix only. It appears that on Windows it is used by 
some time-related functions, which fail to recognize a time zone without OS 
support reverting to GMT.

The easiest way to handle it is to rely on native Windows time zone: do not 
set any time zone at all (django\conf\settings.py, line 64). I didn't try it 
but it should work.

In any case please file a ticket to track the problem.

Thanks,

Eugene


"Michael Hipp" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>
> I'm playing with the following in my template:
>
>   {% now "O Y-M-d H:i" %}
>
> This renders: '+0000 2005-Dec-31 06:03' which appears to be UTC (6 hours 
> later than here in central time in the US).
>
> This is on WinXP Pro and (according to Control Panel) my time zone appears 
> to be set correctly. In settings.py I have TIME_ZONE = 'America/Chicago' 
> which should be correct.
>
> Is this expected behavior?
>
> Thanks,
> Michael
> 



Reply via email to