fixed a typo in the docs (closes #1136)

This commit is contained in:
Fabien Potencier
2013-07-13 21:17:34 +02:00
parent e142fcad9a
commit 3e6e70e228
+2 -2
View File
@@ -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 %}