Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 0f10867519938b88332d2e43803ec15874e8400f 1 parent 53a0676
@freakboy3742 freakboy3742 authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 docs/templates.txt
View
7 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
~~~~~~~~~
Please sign in to comment.
Something went wrong with that request. Please try again.