fix for time

This commit is contained in:
NoobishSVK
2024-02-12 00:06:27 +01:00
parent 72a8785791
commit 8600df9c88
+1 -1
View File
@@ -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 };