mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: add timezone to datetime display across the board
- the "Flagged Out-of-date on ..." link in the package action panel does not contain a timezone specifier. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
e777b7052e
commit
1545eab81d
15 changed files with 47 additions and 41 deletions
|
@ -57,7 +57,7 @@
|
|||
<td>
|
||||
{{
|
||||
"Inactive since %s" | tr
|
||||
| format(inactive_ds.strftime("%Y-%m-%d %H:%M"))
|
||||
| format(datetime_display(inactive_ds))
|
||||
}}
|
||||
</td>
|
||||
{% endif %}
|
||||
|
@ -66,15 +66,14 @@
|
|||
<tr>
|
||||
<th>{% trans %}Registration date{% endtrans %}:</th>
|
||||
<td>
|
||||
{{ user.RegistrationTS.strftime("%Y-%m-%d") }}
|
||||
{{ date_display(user.RegistrationTS) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if login_ts %}
|
||||
<tr>
|
||||
<th>{% trans %}Last Login{% endtrans %}:</th>
|
||||
{% set login_ds = login_ts | dt | as_timezone(timezone) %}
|
||||
<td>{{ login_ds.strftime("%Y-%m-%d") }}</td>
|
||||
<td>{{ date_display(login_ts) }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue