From c53dad7f31b6c81258ee2fe89e04b16bd49e87ae Mon Sep 17 00:00:00 2001 From: "olli.luhtanen" Date: Thu, 22 Jan 2026 09:19:02 +0000 Subject: [PATCH] Testi timezonen huomiointi --- init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.py b/init.py index 302a728..e710dcf 100644 --- a/init.py +++ b/init.py @@ -50,7 +50,7 @@ class AlarmClock: def loop(self): currentButtonState = not self.buttonGpio.read() - currentTime = time() + currentTime = datetime.now(city.tzinfo) if (self.configMode == "normal"): currentMinute = int((currentTime / 60) % 60)