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

@ -47,11 +47,11 @@
</a>
<div class="">
<span class="text-muted" title="{% trans %}lastModified{% endtrans %}">
<i class="fas fa-history fa-fw"></i> {{ entity.lastModified | localizeddate("short") }}
<i class="fas fa-history fa-fw"></i> {{ entity.lastModified | format_datetime("short") }}
</span>
<br>
<span class="text-muted mt-1" title="{% trans %}createdAt{% endtrans %}">
<i class="fas fa-calendar-plus fa-fw"></i> {{ entity.addedDate | localizeddate("short") }}
<i class="fas fa-calendar-plus fa-fw"></i> {{ entity.addedDate | format_datetime("short") }}
</span>
</div>
</div>