mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
fixed a typo in the docs (closes #1136)
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user