fix: only display registration time when RegistrationTS is valid

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-04 15:49:45 -08:00
parent bfe48a7d76
commit 8310357029
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -62,12 +62,14 @@
</td>
{% endif %}
</tr>
{% if user.RegistrationTS %}
<tr>
<th>{% trans %}Registration date{% endtrans %}:</th>
<td>
{{ user.RegistrationTS.strftime("%Y-%m-%d") }}
</td>
</tr>
{% endif %}
{% if login_ts %}
<tr>
<th>{% trans %}Last Login{% endtrans %}:</th>