From 6bd0b2f254993eb74c558b0d1ec3b9b238d36185 Mon Sep 17 00:00:00 2001 From: DanielR92 Date: Wed, 19 Oct 2022 17:26:31 +0200 Subject: [PATCH] little_fix_for_timesync_now_UTC_on_index_page --- tools/esp8266/html/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/esp8266/html/index.html b/tools/esp8266/html/index.html index dc5592c9..c4bec9af 100644 --- a/tools/esp8266/html/index.html +++ b/tools/esp8266/html/index.html @@ -80,10 +80,9 @@ function setTime() { var date = new Date(); - var offset = date.getTimezoneOffset() * -60; var obj = new Object(); obj.cmd = "set_time"; - obj.ts = parseInt(offset + (date.getTime() / 1000)); + obj.ts = parseInt(date.getTime() / 1000); getAjax("/api/setup", apiCb, "POST", JSON.stringify(obj)); }