install twig intl-extra, replace localizeddate filter by format_date

This commit is contained in:
2020-08-03 11:10:39 +02:00
parent e3b5b46bd1
commit 1c9b38941f
10 changed files with 16 additions and 14 deletions

View File

@@ -26,7 +26,7 @@
<p>
{{ 'Last opening since %last_opening%'|trans(
{ '%last_opening%' : accompanying_period.openingDate|localizeddate('long', 'none', app.request.locale) }) }}
{ '%last_opening%' : accompanying_period.openingDate|format_date('long', 'none') }) }}
</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|localizeddate('long', 'none') } ) }}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long', 'none') } ) }}
{% else %}
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
'%opening_date%': accompanying_period.openingDate|localizeddate('long', 'none'),
'%closing_date%': accompanying_period.closingDate|localizeddate('long', 'none')}
'%opening_date%': accompanying_period.openingDate|format_date('long', 'none'),
'%closing_date%': accompanying_period.closingDate|format_date('long', 'none')}
) }}
{% if accompanying_period.isOpen == false %}