[Zope-Coders] dtml-let broken ?
Casey Duncan
c.duncan@nlada.org
Mon, 7 Jan 2002 11:10:13 -0500
On Monday 07 January 2002 11:00 am, Andreas Jung allegedly wrote:
> <dtml-let xx="01/01/2001">
> <dtml-var "ZopeTime(xx)" >
> </dtml-let
>
> returns "1969/12/31 19:00:00 US/Eastern
>
> but <dtml-var "ZopeTime('01/01/2001')"> returns the "2001/01/01".
>
> Looks there is something broken or am I missing something ?
>
> Andreas
Umm, yeah. Try:
<dtml-let xx="'01/01/2001'">
<dtml-var "ZopeTime(xx)">
</dtml-let>
You were missing a crucial set of quotes there. Remember that the double
quotes are part of the DTML code not the Python expr. 8^)
/---------------------------------------------------\
Casey Duncan, Sr. Web Developer
National Legal Aid and Defender Association
c.duncan@nlada.org
\---------------------------------------------------/