Steve Alexander wrote:
> 
> This is particularly apparent in the current DateTime.py, because its
> strftime method just interprets the internal representation of the time
> as GMT, whatever.
> 
> We can fix this easily:
> 
> *** lib/python/DateTime/DateTime.py     Sun Jul 23 20:03:05 2000
> --- lib/python/DateTime/DateTime.old.py Sun Jul 23 20:03:04 2000
> ***************
> *** 1376,1382 ****
>           return millis
> 
>       def strftime(self, format):
> !         return strftime(format, gmtime(self.toZone('GMT').timeTime()))
> 
>       # General formats from previous DateTime
>       def Date(self):
> --- 1376,1382 ----
>           return millis
> 
>       def strftime(self, format):
> !         return strftime(format, gmtime(self.timeTime()))
> 
>       # General formats from previous DateTime
>       def Date(self):
> 
> Now, at least, the time will be reported correctly, although not really
> usefully if you want to have the time formatted in the timezone given to
> the DateTime instance.

No, no, no! 

Ignore the patch, it is a placebo :-/  
I should read these things back more carefully...


The bit about reimplementing time.strftime() in DateTime.py still holds
though.
 
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to