I am still a stupid beginner to Zope, but when I am not completly wrong, then I have found another BUG within ZOPE's DateTime(): (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!! Thanks Kai -- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
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
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 )
Dear Andreas,
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 :-)
the "enddate" I showed in the "pseudo"-code has been defined as an objects property of type "date" - so I assumed the argument is correct - isn't it? Greetings Kai -- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
participants (3)
-
Andreas Jung -
Chris McDonough -
Kai Hofmann