Commit 1e973597 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Do not show current day if registration date is unknown



The registration date field on the account details page currently
defaults to the current day if the user's registration date is unknown.
To avoid confusion, show "unknown" in these cases instead.

Fixes FS#51405.
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent fb073076
......@@ -61,7 +61,11 @@
</tr>
<tr>
<th><?= __("Registration date:") ?></th>
<?php if ($row["RegistrationTS"]): ?>
<td><?= (new DateTime($row["RegistrationTS"]))->format('Y-m-d') ?></td>
<?php else: ?>
<td><?= __("unknown") ?></td>
<?php endif; ?>
</tr>
<?php if (has_credential(CRED_ACCOUNT_LAST_LOGIN)): ?>
<tr>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment