mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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 <lfleischer@archlinux.org>
This commit is contained in:
parent
fb07307638
commit
1e9735972a
1 changed files with 4 additions and 0 deletions
|
@ -61,7 +61,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= __("Registration date:") ?></th>
|
<th><?= __("Registration date:") ?></th>
|
||||||
|
<?php if ($row["RegistrationTS"]): ?>
|
||||||
<td><?= (new DateTime($row["RegistrationTS"]))->format('Y-m-d') ?></td>
|
<td><?= (new DateTime($row["RegistrationTS"]))->format('Y-m-d') ?></td>
|
||||||
|
<?php else: ?>
|
||||||
|
<td><?= __("unknown") ?></td>
|
||||||
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php if (has_credential(CRED_ACCOUNT_LAST_LOGIN)): ?>
|
<?php if (has_credential(CRED_ACCOUNT_LAST_LOGIN)): ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue