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

@@ -1,11 +1,11 @@
<div class="report_entry">
<h3>{{ report.date|format_date('long', 'none') }}<span class="report"> / {{ 'Report'|trans }}</span></h3>
<h3>{{ report.date|format_date('long') }}<span class="report"> / {{ 'Report'|trans }}</span></h3>
<div class="statement">
<span class="statement">{{ '%user% has filled a %report_label% report'|trans(
{
'%user%' : user,
'%report_label%': report.CFGroup.name|localize_translatable_string,
'%date%' : report.date|format_date('long', 'none') }
'%date%' : report.date|format_date('long') }
) }}</span>
</div>
{% if custom_fields_in_summary|length > 0 %}