[Zope] DateTime strftime problem

Jürgen Herrmann Juergen.Herrmann at XLhost.de
Mon Nov 7 08:21:32 EST 2005


hi all!

DateTime('2005/04/03 02:01 GMT').toZone('GMT-4')

prints:
2005/04/02 22:01:00 GMT-4
...which is what i expected
---------------------------------------------------------------------
DateTime('2005/04/03 02:01 GMT').toZone('GMT-4')\
.strftime('%Y/%m/%d %H:%M %Z')

prints:
2005/04/03 04:01

hmm, where's the timezone information gone? to make it short, how
can i get a text representation of a DateTime object in a given
timezone?

thanks in advance!

juergen herrmann
_______________________________________________________________________

>> XLhost.de - eXperts in Linux hosting <<

Jürgen Herrmann
Bruderwöhrdstraße 15b, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de


More information about the Zope mailing list