mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-02 14:34:31 +02: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
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue