twig filter format_date need only one argument

This commit is contained in:
2020-09-10 16:00:32 +02:00
parent 609a277f03
commit 675ae7fd5d
4 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@
<tbody>
{% for report in reports %}
<tr>
<td>{% if report.date %}{{ report.date|format_date('long', 'none') }}{% endif %}</td>
<td>{% if report.date %}{{ report.date|format_date('long') }}{% endif %}</td>
<td>{{ report.cFGroup.getName|localize_translatable_string }}</td>
<td>{{ report.scope.name|localize_translatable_string }}</td>
<td>

View File

@@ -32,7 +32,7 @@
<dt>{{ 'Circle'|trans }}&nbsp;:</dt>
<dd><span class="scope circle">{{ entity.scope.name|localize_translatable_string }}</span></dd>
<dt>{{ 'Date'|trans }}&nbsp;:</dt>
<dd>{{ entity.date|format_date('long', 'none') }}</dd>
<dd>{{ entity.date|format_date('long') }}</dd>
<dt>{{ 'User'|trans }}&nbsp;:</dt>
<dd>{{ entity.user }}</dd>