[Zope] DateTime.strftime problem

Dieter Maurer dieter at handshake.de
Mon Jan 31 13:13:50 EST 2005


Ron Bickers wrote at 2005-1-30 20:42 -0500:
> ...
>What do you get when you try my examples?  You only used your local timezone, 
>which works fine for me too, but it doesn't work when I'm trying to use a 
>different timezone than my own.

>>> now=DateTime('GMT')
>>> now
DateTime('2005/01/31 18:11:23.211 GMT')
>>> now.strftime('%H')
'18'

Note, that my local timezone is "GMT+1".

Thus, it works for me also in a different timezone.

>Also, according to notes in the bug I referenced, it looks like the behavior 
>may have changed starting with 2.7.4.

Okay, can only speak for 2.7.2.

-- 
Dieter


More information about the Zope mailing list