From 784d10c1e95e8ef9b4986215b300eab2dda1e91b Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 5 Aug 2021 21:40:32 -0700 Subject: [PATCH] Remove "Sent" being inserted incorrectly. Fixes #1252 --- webroot/js/components/chat/chat-message-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/components/chat/chat-message-view.js b/webroot/js/components/chat/chat-message-view.js index 6d4546859..24e1bfc92 100644 --- a/webroot/js/components/chat/chat-message-view.js +++ b/webroot/js/components/chat/chat-message-view.js @@ -168,7 +168,7 @@ function formatTimestamp(sentAt) { let diffInDays = getDiffInDaysFromNow(sentAt); if (diffInDays >= 1) { return ( - `Sent at ${sentAt.toLocaleDateString('en-US', { + `at ${sentAt.toLocaleDateString('en-US', { dateStyle: 'medium', })} at ` + sentAt.toLocaleTimeString() );