From 3e6e70e2282ab627da670e4d9e484bd406b0951d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 13 Jul 2013 21:17:34 +0200 Subject: [PATCH] fixed a typo in the docs (closes #1136) --- doc/functions/date.rst | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/functions/date.rst b/doc/functions/date.rst index fd67fc5..f1c9481 100644 --- a/doc/functions/date.rst +++ b/doc/functions/date.rst @@ -11,7 +11,7 @@ Converts an argument to a date to allow date comparison: .. code-block:: jinja - {% if date(user.created_at) < date('+2days') %} + {% if date(user.created_at) < date('-2days') %} {# do something #} {% endif %} @@ -21,7 +21,7 @@ You can pass a timezone as the second argument: .. code-block:: jinja - {% if date(user.created_at) < date('+2days', 'Europe/Paris') %} + {% if date(user.created_at) < date('-2days', 'Europe/Paris') %} {# do something #} {% endif %} -- 1.7.2.5