Use format_datetime filters from twig core instead of deprecated twig/extensions

This commit is contained in:
Jan Böhmer 2019-11-23 14:48:21 +01:00
parent 26fe946de3
commit cd5f099965
12 changed files with 19 additions and 100 deletions

View file

@ -11,7 +11,7 @@
<p class="form-control-plaintext">
{% if date(entity.addedDate) > date('1900/01/01') %}
{{ entity.addedDate | localizeddate("long") }}
{{ entity.addedDate | format_datetime("long") }}
{% else %}
-
{% endif %}
@ -24,7 +24,7 @@
<div class="col-md-9">
<p class="form-control-plaintext">
{% if date(entity.lastModified) > date('1900/01/01') %}
{{ entity.lastModified | localizeddate("long") }}
{{ entity.lastModified | format_datetime("long") }}
{% else %}
-
{% endif %}