twig filter format_date need only one argument

This commit is contained in:
Tchama 2020-09-10 16:00:32 +02:00
parent adbcbbb5b1
commit e09fcf33b2
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
{% endif %}
</div>
{%- if options['with_valid_from'] == true -%}
<span class="address_since">{{ 'Since %date%'|trans( { '%date%' : address.validFrom|format_date('long', 'none') } ) }}</span>
<span class="address_since">{{ 'Since %date%'|trans( { '%date%' : address.validFrom|format_date('long') } ) }}</span>
{%- endif -%}
</div>
{%- endmacro -%}

View File

@ -1 +1 @@
{% if value is not empty %}<blockquote class="chill-user-quote">{{ value|format_date(date_format, time_format) }}</blockquote>{% else %}<span class="chill-no-data-statement">{{ message|trans }}</span>{% endif %}
{% if value is not empty %}<blockquote class="chill-user-quote">{{ value|format_date(date_format) }}</blockquote>{% else %}<span class="chill-no-data-statement">{{ message|trans }}</span>{% endif %}

View File

@ -1 +1 @@
{% if value is not empty %}{{ value|format_date(date_format, time_format) }}{% else %}<span class="chill-no-data-statement">{{ message|trans }}</span>{% endif %}
{% if value is not empty %}{{ value|format_date(date_format) }}{% else %}<span class="chill-no-data-statement">{{ message|trans }}</span>{% endif %}