mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-05 01:39:33 +00:00
Use format_datetime filters from twig core instead of deprecated twig/extensions
This commit is contained in:
parent
26fe946de3
commit
cd5f099965
12 changed files with 19 additions and 100 deletions
|
|
@ -4,12 +4,12 @@
|
|||
<tbody>
|
||||
<tr> {# Creation date #}
|
||||
<td>{% trans %}createdAt{% endtrans %}</td>
|
||||
<td>{{ part.addedDate | localizeddate("long")}}</td>
|
||||
<td>{{ part.addedDate | format_datetime("long")}}</td>
|
||||
</tr>
|
||||
|
||||
<tr> {# Last modified date #}
|
||||
<td>{% trans %}lastModified{% endtrans %}</td>
|
||||
<td>{{ part.lastModified | localizeddate("long")}}</td>
|
||||
<td>{{ part.lastModified | format_datetime("long")}}</td>
|
||||
</tr>
|
||||
|
||||
<tr> {# ID #}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue