Re: 'now' outputs in UTC

2005-12-31 Thread Michael Hipp
Eugene Lazutkin wrote: 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 for that tip. I did remove the TI

Re: 'now' outputs in UTC

2005-12-30 Thread Eugene Lazutkin
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 Wind

'now' outputs in UTC

2005-12-30 Thread Michael Hipp
I'm playing with the following in my template: {% now "O Y-M-d H:i" %} This renders: '+ 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 se