twig filter format_date need only one argument

This commit is contained in:
2020-09-10 16:00:32 +02:00
parent 33c9cdeaf2
commit 65a5c94c2f
10 changed files with 14 additions and 14 deletions

View File

@@ -26,7 +26,7 @@
<p>
{{ 'Last opening since %last_opening%'|trans(
{ '%last_opening%' : accompanying_period.openingDate|format_date('long', 'none') }) }}
{ '%last_opening%' : accompanying_period.openingDate|format_date('long') }) }}
</p>
{% if form.openingDate is defined %}

View File

@@ -22,11 +22,11 @@
<tr>
<td>
{% if accompanying_period.closingDate == null %}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long', 'none') } ) }}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }}
{% else %}
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
'%opening_date%': accompanying_period.openingDate|format_date('long', 'none'),
'%closing_date%': accompanying_period.closingDate|format_date('long', 'none')}
'%opening_date%': accompanying_period.openingDate|format_date('long'),
'%closing_date%': accompanying_period.closingDate|format_date('long')}
) }}
{% if accompanying_period.isOpen == false %}