Try {{ object.pub_date|date }}
Chris
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
> On Behalf Of Matias
> Sent: 4 February 2007 1:50 PM
> To: Django users
> Subject: DATETIME_FORMAT ignored
>
>
> Hi,
>
> Hi,
>
> I'm my settings.py I've added the following line:
>
> DATETIME_FORMAT = 'j/n/y'
>
>
> and then in my template I print a DateTimeField of an object like
> this:
>
> {{object.pub_date}}
>
> But, the format I specified on the settings.py file doesn't seem to
> have any
> effect.
>
> Also, the DATETIME_FORMAT value is ignored in the admin interface.
>
> What am I doing wrong?
>
>
> Thanks.
>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---