[Zope] DateTime() BUG!

Dieter Maurer dieter@handshake.de
Mon, 7 May 2001 19:24:15 +0200 (CEST)


Kai Hofmann writes:
 > the "enddate" I showed in the "pseudo"-code has been defined as an object=
 > s=20
 > property of type "date" - so I assumed the argument is correct - isn't it=
 > ?
But then the result *IS* correct, too!

If you have, as is you example:

   enddate=<todays date without time>
then
   DateTime().lessThanOrEqual(enddate)

must return "false" most of the day.

As the name suggests: "DateTime" is date *AND* time.
"lessThanOrEqual" must take both components into account.


Dieter