[Zope] date formatting

garry saddington garry at schoolteachers.co.uk
Mon Aug 29 09:58:52 EDT 2005


On Mon, 2005-08-29 at 14:51 +0100, Peter Bengtsson wrote:
> If <dtml-var ZopeTime fmt="Day"> but
> <dtml-var foo fmt="Day"> doesn't then there's nothing wrong with how
> you're using the fmt parameter but something is wrong with "foo".
> Try::
> 
>  <dtml-var "foo.strftime('Day')">
this gives the following error: 'str' object has no attribute strftime 
regards
garry

> 
> On 8/29/05, garry saddington <garry at schoolteachers.co.uk> wrote:
> > I am trying to format a dtml-var date by using fmt=Day
> >  <dtml-var foo fmt="Day"> returns error: Error Type: TypeError
> > Error Value: not all arguments converted during string formatting
> > 
> > while <dtml-var ZopeTime fmt="Day"> works fine.
> > 
> > The date is International format and I have Zope set up to parse
> > international dates.
> > Does anyone know where I am going wrong?
> > regards
> > garry
> > 
> > _______________________________________________
> > Zope maillist  -  Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > 
> 
> 



More information about the Zope mailing list