use timezone when showing device time

This commit is contained in:
Paul
2019-08-29 23:18:19 +02:00
parent f7aaa69408
commit 80ee758eef
3 changed files with 10 additions and 8 deletions

View File

@@ -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":