mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-01 00:35:15 +02:00
Use localizeddate for showing date information in templates.
This commit is contained in:
parent
af5a7f8986
commit
b090f1b716
7 changed files with 86 additions and 4 deletions
|
@ -198,7 +198,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label>{% trans %}createdAt{% endtrans %}:</label>
|
||||
<p>{{ part.addedDate | date}}
|
||||
<p>{{ part.addedDate | localizeddate("long")}}
|
||||
{#{if !empty($creation_user)} {% trans %}by{% endtrans %}
|
||||
{if $can_visit_user}
|
||||
<a href="{$relative_path}user_info.php?uid={$creation_user_id}">{$creation_user}</a>
|
||||
|
@ -213,7 +213,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label>{% trans %}lastModified{% endtrans %}:</label>
|
||||
<p>{{ part.lastModified | date }}
|
||||
<p>{{ part.lastModified | localizeddate("long") }}
|
||||
{# {if !empty($last_modified_user)} {% trans %}by{% endtrans %}
|
||||
{if $can_visit_user}
|
||||
<a href="{$relative_path}user_info.php?uid={$last_modified_user_id}">{$last_modified_user}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue