1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-09 14:40:17 +00:00

fix for local time

This commit is contained in:
haennes
2023-11-27 09:15:47 +01:00
parent 8b64b185a4
commit 9a70bf8102
10 changed files with 14 additions and 34 deletions

4
data/js/controls.js vendored
View File

@ -635,7 +635,9 @@ function start() {
break;
case UPDATE_TIME:
var rv = new Date().toISOString();
var date = new Date();
date.setHours(date.getHours() + date.getTimezoneOffset());
var rv = date.toISOString();
websock.send("time:" + rv + ":" + data.id);
break;