[Zope] Sybase and DateTime.py: _validTime()

Hung Jung Lu hungjunglu@hotmail.com
Fri, 04 Feb 2000 14:07:34 PST


Hi,

There is a bug in \lib\DateTime\DateTime.py, this particularly concerns 
Sybase database users. In the lines:

    def _validTime(self,h,m,s):
        return h>=0 and h<=23 and m>=0 and m<=59 and s>=0 and s<=59

Please change s<=59 to s<60.

This bug is causing Sybase to crash whenever a table contains a date value 
with s>59, e.g: s=59.23

regards,

Hung Jung
(I have submitted to the Zope bug collector)

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com