From: Fabien Potencier Date: Sat, 13 Jul 2013 19:17:34 +0000 (+0200) Subject: fixed a typo in the docs (closes #1136) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3e6e70e2282ab627da670e4d9e484bd406b0951d;p=web%2Fkonrad%2Ftwig.git fixed a typo in the docs (closes #1136) --- 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 %}