Testi timezonen huomiointi
This commit is contained in:
2
init.py
2
init.py
@@ -50,7 +50,7 @@ class AlarmClock:
|
|||||||
|
|
||||||
def loop(self):
|
def loop(self):
|
||||||
currentButtonState = not self.buttonGpio.read()
|
currentButtonState = not self.buttonGpio.read()
|
||||||
currentTime = time()
|
currentTime = datetime.now(city.tzinfo)
|
||||||
|
|
||||||
if (self.configMode == "normal"):
|
if (self.configMode == "normal"):
|
||||||
currentMinute = int((currentTime / 60) % 60)
|
currentMinute = int((currentTime / 60) % 60)
|
||||||
|
|||||||
Reference in New Issue
Block a user