[Zope] date formatting question

Frederik Vos fvos at vosberg.be
Mon Dec 1 11:10:23 EST 2003


On Mon, 2003-12-01 at 17:01, Kate Legere wrote:
> This is silly but in the ZPT I'm working on I can't get the bobobase
> modification time to format in a non-ugly fashion
> 
> I tried :
>   <a tal:attributes="href item/absolute_url"
>            tal:content="item/bobobase_modification_time" fmt=aCommon>
> title</a>
> 
> but it pretty much ignores the formatting suggestion.
> 
> Kate

<span tal:define="mtime item/bobobase_modification_time" 
     tal:content="python:mtime.strftime('%d/%m/%Y %H:%M')">date</span>


-- 
Frederik Vos <fvos at vosberg.be>
L4L & VosBerg at SuSE




More information about the Zope mailing list