9 Nov
2005
9 Nov
'05
8 p.m.
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