From 453a79a4e42c118e489b4d43a3fa40ea7f808dc5 Mon Sep 17 00:00:00 2001 From: creations Date: Sat, 10 May 2025 12:54:57 -0400 Subject: [PATCH] to 24h --- public/js/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index d80afa7..51ef047 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -154,7 +154,14 @@ async function populateReviews(userId, page = 1) { const avatar = sender.profilePhoto; const comment = review.comment; const timestamp = review.timestamp - ? new Date(review.timestamp * 1000).toLocaleString() + ? new Date(review.timestamp * 1000).toLocaleString(undefined, { + hour12: false, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + }) : "N/A"; const badges = (sender.badges || [])