Potential fix for code scanning alert no. 2: Replacement of a substring with itself

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Anton Roslund
2025-07-14 16:22:06 +02:00
committed by GitHub
parent 7e64b39def
commit 8a53f41ad4

View File

@@ -140,7 +140,7 @@ document.addEventListener("DOMContentLoaded", async function () {
function formatMessageTimestamp(createdAt) {
const date = new Date(createdAt);
return date.toLocaleString('sv-SE', { hour12: false }).replace(' ', ' ').slice(0, 16);
return date.toLocaleString('sv-SE', { hour12: false }).slice(0, 16);
}
await fetchMessages();