From 96c4a15ffaa789f6ec13831673feed0bf8de1550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= <53119851+martinet101@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:16:36 +0200 Subject: [PATCH] Fix (in theory) issue #1 --- elevenclock/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elevenclock/__init__.py b/elevenclock/__init__.py index 68e55a8d..354a4c40 100644 --- a/elevenclock/__init__.py +++ b/elevenclock/__init__.py @@ -40,7 +40,7 @@ def readRegedit(aKey, sKey, default, storage=winreg.HKEY_CURRENT_USER): dateMode = dateMode.replace("dd", "%d").replace("d", "%d").replace("MMM", "%b").replace("MM", "%m").replace("M", "%m").replace("yyyy", "%Y").replace("yy", "%y") timeMode = readRegedit(r"Control Panel\International", "sShortTime", "H:mm") -timeMode = timeMode.replace("HH", "%H").replace("H", "%H").replace("mm", "%M").replace("m", "%M") +timeMode = timeMode.replace("HH", "%H").replace("H", "%H").replace("hh", "%I").replace("h", "%I").replace("mm", "%M").replace("m", "%M").replace("tt", "%p").replace("t", "%p") dateTimeFormat = dateTimeFormat.replace("%d/%m/%Y", dateMode).replace("%H:%M", timeMode) @@ -199,4 +199,4 @@ def restartClocks(): threading.Thread(target=screenCheckThread, daemon=True).start() app.exec_() -sys.exit(0) \ No newline at end of file +sys.exit(0)