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 | |
| parent | 4be2f6b4edfe659c0460f7a45838f6dbf1c903b4 (diff) | |
use date format in actor profile
| -rw-r--r-- | locale/en_GB.json | 2 | ||||
| -rw-r--r-- | templates/actor/profile.php | 3 | ||||
| -rw-r--r-- | templates/actor/profile_editable.php | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/locale/en_GB.json b/locale/en_GB.json index 8c6c2a4..aecb6cd 100644 --- a/locale/en_GB.json +++ b/locale/en_GB.json @@ -3,7 +3,7 @@ "digitigrade": "Digitigrade", "version": "Digitigrade @ %s", "action.share": "Share", - "user.profile.createdAt": "Joined on %s", + "user.profile.createdAt": "Joined %s", "user.profile.openRemote": "Open remote profile page", "user.profile.bio.placeholder": "This user hasn't written a bio yet.", "user.profile.follow.action": "Follow", 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> |
