From 06d49768bd6974a455e6dd46e9526a093721897e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 25 Aug 2008 12:31:10 +0000 Subject: Fixed #7743: Reverted [8483], which was itself a reversion of [8481], after confirmation from Malcolm. Corrected a long standing mistake in the timesince/timeuntil filters when using a parameter for 'now'. Thanks to Andrew Shearer for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8535 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/templates/builtins.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index feca435ffe..20c5ee513e 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1330,7 +1330,7 @@ Takes an optional argument that is a variable containing the date to use as the comparison point (without the argument, the comparison point is *now*). For example, if ``blog_date`` is a date instance representing midnight on 1 June 2006, and ``comment_date`` is a date instance for 08:00 on 1 June 2006, -then ``{{ comment_date|timesince:blog_date }}`` would return "8 hours". +then ``{{ blog_date|timesince:comment_date }}`` would return "8 hours". Minutes is the smallest unit used, and "0 minutes" will be returned for any date that is in the future relative to the comparison point. -- cgit v1.3