diff options
| author | winter | 2025-03-30 20:27:05 +0100 |
|---|---|---|
| committer | winter | 2025-03-30 20:57:47 +0100 |
| commit | 065695cc2d4471b212124cf878fd74b21a302002 (patch) | |
| tree | 7937501963a2d139d5deaaf1bd378d27660fbc33 /templates | |
| parent | 4be2f6b4edfe659c0460f7a45838f6dbf1c903b4 (diff) | |
use date format in actor profile
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/actor/profile.php | 3 | ||||
| -rw-r--r-- | templates/actor/profile_editable.php | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/templates/actor/profile.php b/templates/actor/profile.php index 8339fa2..3165586 100644 --- a/templates/actor/profile.php +++ b/templates/actor/profile.php @@ -22,8 +22,7 @@ $actorUser = UserAccount::findByLinkedActor($actor); <div class="displayName"><?= htmlspecialchars($actor->displayName) ?></div> <div class="pronouns"><?= htmlspecialchars($actor->pronouns) ?></div> <div class="handle">@<?= $actor->getFullHandle() ?></div> - <div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), $actor->created->format('Y-m-d')) ?> - </div> + <div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?></div> </div> <div class="profileMiniActions"> diff --git a/templates/actor/profile_editable.php b/templates/actor/profile_editable.php index f4318fd..f6a0fc4 100644 --- a/templates/actor/profile_editable.php +++ b/templates/actor/profile_editable.php @@ -16,7 +16,7 @@ </div> </div> <div class="handle">@<?= $actor->getFullHandle() ?></div> - <div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), $actor->created->format('Y-m-d')) ?></div> + <div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?></div> </div> </div> |
