mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
use timezone when showing device time
This commit is contained in:
@@ -226,6 +226,7 @@ wss.on('connection', function connection(ws) {
|
||||
var res = {};
|
||||
res.command = "gettime";
|
||||
res.epoch = Math.floor((new Date).getTime() / 1000);
|
||||
//res.epoch = 1567107755;
|
||||
wss.broadcast(res);
|
||||
break;
|
||||
case "settime":
|
||||
|
||||
Reference in New Issue
Block a user