Browse Source

little_fix_for_timesync_now_UTC_on_index_page

pull/359/head
DanielR92 2 years ago
parent
commit
6bd0b2f254
  1. 3
      tools/esp8266/html/index.html

3
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));
}

Loading…
Cancel
Save