Ron Bickers wrote at 2005-1-31 15:37 -0500:
... What does DateTime('GMT').strftime('%Z') return for you? Both 2.7.3 and 2.7.4 return my local timezone, even though 2.7.3 returns the correct hour for GMT.
I only now understand your problem (as I am not familiar with US timezones). Looking at the code of "DateTime.strftime" (note 2.7.2), it calls "time.strftime" and this does not know anything about a timezope different from the standard one. This means: everything is correct with the exception of the timezone info. There are two approaches: * Do not use "time.strftime" * Code the "%Z" appropriately before the format is passed on to "time.strftime" and after the call replace the code with the timezone of the "DateTime". -- Dieter