From 03e90039695abc0fdc9276980bd8728bd8951f05 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 29 Jan 2025 23:20:35 +0100 Subject: [PATCH] Update. --- src/snek/static/message-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snek/static/message-list.js b/src/snek/static/message-list.js index 7211ddb..67a12c2 100644 --- a/src/snek/static/message-list.js +++ b/src/snek/static/message-list.js @@ -26,7 +26,7 @@ class MessageListElement extends HTMLElement { } timeAgo(date1, date2) { - const diffMs = Math.abs(date2 - date1); // Difference in milliseconds + const diffMs = Math.abs(date2 - date1); const days = Math.floor(diffMs / (1000 * 60 * 60 * 24)); const hours = Math.floor((diffMs % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));