install twig intl-extra, replace localizeddate filter by format_date

This commit is contained in:
2020-08-03 11:10:39 +02:00
parent 0092557d84
commit 8944d21652
6 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
</tr>
<tr>
<th>{{ 'Date'|trans }} </th>
<td>{{ event.date|localizeddate('long', 'short') }}</td>
<td>{{ event.date|format_date('long', 'short') }}</td>
</tr>
</tbody>
</table>
@@ -38,7 +38,7 @@
<td>{{ person_macro.render(participation.vars.value.person) }}</td>
<td>{{ form_widget(participation.role) }}</td>
<td>{{ form_widget(participation.status) }}</td>
<td>{{ participation.vars.value.lastUpdate|time_diff }} <i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|localizeddate("long", "medium")|escape('html_attr') }}"></i></td>
<td>{{ participation.vars.value.lastUpdate|time_diff }} <i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|format_date("long", "medium")|escape('html_attr') }}"></i></td>
</tr>
{% endfor %}
</tbody>

View File

@@ -17,7 +17,7 @@
</tr>
<tr>
<th>{{ 'Date'|trans }} </th>
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
<td>{{ participation.event.date|format_date('long', 'short') }}</td>
</tr>
</tbody>
</table>