From 27ca03878c2735fa95c8ea03f9e8230927a20aaa Mon Sep 17 00:00:00 2001 From: ollo Date: Sun, 19 Jun 2016 00:34:30 +0200 Subject: [PATCH] Timezone calculation ony once --- main.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.lua b/main.lua index 574809f..8789e73 100644 --- a/main.lua +++ b/main.lua @@ -76,8 +76,6 @@ function normalOperation() tmr.alarm(1, 15000, 1 ,function() sec, usec = rtctime.get() - -- Include the timezone - sec = sec + (timezoneoffset * 3600) time = getTime(sec, timezoneoffset) print("Local time : " .. time.year .. "-" .. time.month .. "-" .. time.day .. " " .. time.hour .. ":" .. time.minute .. ":" .. time.second)