I just ran into the same problem myself a few minutes ago. You have to do this: <dtml-if "_.DateTime.isCurrentDay(date) and _.DateTime.isCurrentMonth(date) and _.DateTime.isCurrentYear(date)"> -- Loren
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Richard Bartels Sent: Thursday, March 01, 2001 10:12 To: zope@zope.org Subject: [Zope] problem with isCurrentDay()
Hi all,
I seem to be having a date problem today. I have a variable which is set to the bobobase_modification_time of dtml documents. I then do date.isCurrentDay() on it and it is returning true for 02/01/01 instead of 03/01/01. It is not returning true for 03/01/01. Anybody else notice this. Zope 2.2.4 on Solaris 2.8.
Thanks
Rick Bartels Consulting Systems Engineer Bank of America
------------------------------------------------------------ --== Sent via Deja.com ==-- http://www.deja.com/
_______________________________________________ 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 )