mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 09:19:16 +02:00
fix for time
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ function getLocalizedTime(serverTime) {
|
|||||||
const localOffset = serverDate.getTimezoneOffset() * 60000; // Convert minutes to milliseconds
|
const localOffset = serverDate.getTimezoneOffset() * 60000; // Convert minutes to milliseconds
|
||||||
|
|
||||||
// Calculate local time by adding the offset
|
// Calculate local time by adding the offset
|
||||||
const localTime = new Date(serverDate.getTime() - localOffset);
|
const localTime = new Date(serverDate.getTime());
|
||||||
|
|
||||||
// Format local time
|
// Format local time
|
||||||
const options = { year: 'numeric', month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit', hour12: false };
|
const options = { year: 'numeric', month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit', hour12: false };
|
||||||
|
|||||||
Reference in New Issue
Block a user