From 6208a396955d424f236b7723bda88d43a71b2453 Mon Sep 17 00:00:00 2001 From: MaBecker Date: Thu, 14 Nov 2019 10:05:49 +0100 Subject: [PATCH] add set timezone --- apps/clock-mixed.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/clock-mixed.js b/apps/clock-mixed.js index 97c73c0aa..770a4073c 100644 --- a/apps/clock-mixed.js +++ b/apps/clock-mixed.js @@ -4,6 +4,8 @@ const Radius = { "center": 8, "hour": 78, "min": 95, "dots": 102 }; const Center = { "x": 120, "y": 132 }; + try{ E.setTimeZone(require("Storage").readJSON("@setting").timezone);} catch(e){} + function rotatePoint(x, y, d) { rad = -1 * d / 180 * Math.PI; var sin = Math.sin(rad); @@ -81,7 +83,6 @@ g.clear(); setInterval(drawMixedClock, 5E3); - drawWidgets(); drawMixedClock(); })();