From 8916ae279c9e0a05cf8aa0403583aca1b45064c6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 26 Sep 2023 13:39:15 +0300 Subject: [PATCH] remove second in chat timestamp (more plaesing to the eye this way) --- files/assets/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 94fd67a13..fa2a7aedc 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -1,5 +1,5 @@ function formatDate(d) { - return d.toLocaleTimeString() + return d.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'}) } for (const e of timestamps) {