From 065695cc2d4471b212124cf878fd74b21a302002 Mon Sep 17 00:00:00 2001
From: winter
Date: Sun, 30 Mar 2025 20:27:05 +0100
Subject: use date format in actor profile
---
templates/actor/profile.php | 3 +--
templates/actor/profile_editable.php | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
(limited to 'templates')
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);
= htmlspecialchars($actor->displayName) ?>
= htmlspecialchars($actor->pronouns) ?>
@= $actor->getFullHandle() ?>
- = sprintf(__('user.profile.createdAt'), $actor->created->format('Y-m-d')) ?>
-
+ = sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?>
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 @@
@= $actor->getFullHandle() ?>
- = sprintf(__('user.profile.createdAt'), $actor->created->format('Y-m-d')) ?>
+ = sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?>
--
cgit v1.3