From 0f10867519938b88332d2e43803ec15874e8400f Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 12 Jul 2007 14:11:41 +0000 Subject: [PATCH] Fixed #4522 -- Clarified the allowed filter arguments on the time and date filters. Thanks for the suggestion, admackin@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5674 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/templates.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/templates.txt b/docs/templates.txt index f5ed1fe74b..7628e02474 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -950,7 +950,7 @@ Removes all values of arg from the given string. date ~~~~ -Formats a date according to the given format (same as the ``now`` tag). +Formats a date according to the given format (same as the `now`_ tag). default ~~~~~~~ @@ -1189,7 +1189,10 @@ Strips all [X]HTML tags. time ~~~~ -Formats a time according to the given format (same as the ``now`` tag). +Formats a time according to the given format (same as the `now`_ tag). +The time filter will only accept parameters in the format string that relate +to the time of day, not the date (for obvious reasons). If you need to +format a date, use the `date`_ filter. timesince ~~~~~~~~~