[Zope] Re: DateTime strftime problem

Dieter Maurer dieter at handshake.de
Wed Nov 9 15:00:57 EST 2005


Jürgen Herrmann wrote at 2005-11-9 13:38 +0100:
>zope 2.7.8's DateTime::strftime() looks like this:
>
>def strftime(self, format):
>  # Format the date/time using the *local timezone representation*.
>  return strftime(format, safelocaltime(self.timeTime()))
>
>it seems that my assumption about strftime's behaviour was incorrect.
>why do we have time zones at all, if strftime always uses the machine's
>local time zone?

Zope's "strftime" is simply broken.

Forget about it. It should be simple to implement your own
version in Python (and I think someone already did).
Once you did, donate the implementation to Zope....

-- 
Dieter


More information about the Zope mailing list