[Zope] Working with ZopeTime

Chris Withers chrisw@nipltd.com
Tue, 30 May 2000 20:38:50 +0100


The python expression syntax strikes again :(

Tom Scheidt wrote:
> <dtml-if "date1 == '<dtml-var ZopeTime fmt=Day>'">

You're trying to embed DTML within python here.

you really want (untested):

<dtml-if "date1 == _DateTime.now().Day()">

cheers,

Chris