Skip to content

Commit

Permalink
Fix (in theory) issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Oct 4, 2021
1 parent ea4a55d commit 96c4a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elevenclock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -199,4 +199,4 @@ def restartClocks():
threading.Thread(target=screenCheckThread, daemon=True).start()

app.exec_()
sys.exit(0)
sys.exit(0)

0 comments on commit 96c4a15

Please sign in to comment.