From 8600df9c884de1993b775de806c96a7d8969a562 Mon Sep 17 00:00:00 2001 From: NoobishSVK Date: Mon, 12 Feb 2024 00:06:27 +0100 Subject: [PATCH] fix for time --- web/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/main.js b/web/js/main.js index 605fd9a..dba4432 100644 --- a/web/js/main.js +++ b/web/js/main.js @@ -180,7 +180,7 @@ function getLocalizedTime(serverTime) { const localOffset = serverDate.getTimezoneOffset() * 60000; // Convert minutes to milliseconds // Calculate local time by adding the offset - const localTime = new Date(serverDate.getTime() - localOffset); + const localTime = new Date(serverDate.getTime()); // Format local time const options = { year: 'numeric', month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit', hour12: false };