On Sat, 2006-09-23 at 01:52 -0700, Rudolph wrote:
> Hi,
>
> When I have datetime field with the value "1000-1-1 00:00:00" and I
> have a template which has:
> {{ datetime_field|date:"j F Y" }}
> I get a ValueError: year out of range. But when I do:
> {{ datetime_field.date|date:"j F Y" }}
> it works okay (except that I lost the time values if I wanted to use
> them).
You've found a way to work around ticket #1443. I'm not really sure what
the true solution is there, but at some point I'd like to fix things so
that we can use dates prior to 1900, so I'm keeping a small eye on that
bug.
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---