1
0
Fork 0

Merge pull request #2 from MaBecker/app_fixes

add set timezone
master
Mark Becker 2019-11-14 10:22:32 +01:00 committed by GitHub
commit 05efe3d7ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,8 @@
const Radius = { "center": 8, "hour": 78, "min": 95, "dots": 102 }; const Radius = { "center": 8, "hour": 78, "min": 95, "dots": 102 };
const Center = { "x": 120, "y": 132 }; const Center = { "x": 120, "y": 132 };
try{ E.setTimeZone(require("Storage").readJSON("@setting").timezone);} catch(e){}
function rotatePoint(x, y, d) { function rotatePoint(x, y, d) {
rad = -1 * d / 180 * Math.PI; rad = -1 * d / 180 * Math.PI;
var sin = Math.sin(rad); var sin = Math.sin(rad);
@ -81,7 +83,6 @@
g.clear(); g.clear();
setInterval(drawMixedClock, 5E3); setInterval(drawMixedClock, 5E3);
drawWidgets();
drawMixedClock(); drawMixedClock();
})(); })();