Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui

This commit is contained in:
joBr99
2023-11-19 23:12:41 +01:00
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ class LovelaceUIPanel:
time.sleep(1)
def update_time(self):
use_timezone = tz.gettz("Europe/Berlin")
use_timezone = tz.gettz(self.settings["timeZone"])
time_string = datetime.datetime.now(
use_timezone).strftime(self.settings["timeFormat"])
libs.panel_cmd.send_time(self.sendTopic, time_string)