DateTime.lessThanEqualTo() expects a DateTime instance or a floating point number. So you pass a wrong argument. But I admit the error handling should be better at this point :-) Andreas ----- Original Message ----- From: "Chris McDonough" <chrism@digicool.com> To: <hofmann@isl.org> Cc: <zope@zope.org> Sent: Friday, May 04, 2001 8:47 AM Subject: Re: [Zope] DateTime() BUG!
Kai Hofmann wrote:
(pseudo syntax): enddate=2001/05/04
DateTime().lessThanEqualTo(enddate)
results for today (2001/05/04) into FALSE !!!
I can only assume that this happens, because the DateTime() returns a date and a time - where enddate is only a date ....
Can someone verify this and report the bug to the developers??? Its really important for me!!
Hi Kai... you just did. ;-)
Do you think you can put this in the Collector at http://classic.zope.org:8080/Collector ? Otherwise it may float away on the stream of messages to the list.
- C
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )