[Zope] Date formatting problems

Eric Walstad eric@walstads.net
Wed, 13 Jun 2001 10:02:12 -0700


Hi Craig,
FYI, have you tried:
<dtml-var ZopeTime fmt="%d/%m/%Y - %H:%M">
?

It works for me, which makes me think that there may be a problem with your
date_created object.  Is it a DateTime object?

Eric.

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Craig
> Stoddart
> Sent: Wednesday, June 13, 2001 9:23 AM
> To: zope@zope.org
> Subject: [Zope] Date formatting problems
>
>
> I am trying to format the dates in my Squishdot site so that they
> don't appear
> in American format.
>
> However, the following code: <dtml-var date_created fmt="%d/%m/%Y
> - %H:%M">
> results in an error message saying
>
> Error Type: TypeError
> Error Value: illegal argument type for built-in operation
>
> Does anyone have any idea what I am doing wrong?
> -------------------------------------------------
> Craig Stoddart
> IT Software Development Officer
>
> Dundee City Council
> IT Division
> Northern College
> Technical Block
> Gardyne Road
> Dundee DD5 1NY
>
> Phone:  01382 438170
> Fax:    01382 438002
> E-mail: craig.stoddart@dundeecity.gov.uk
> -------------------------------------------------
>
>
>
> _______________________________________________
> 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 )