set system locale on application start

This commit is contained in:
dries.k
2023-06-25 13:58:14 +02:00
parent 1862ed4f7b
commit 9668fd6bb8

View File

@@ -1,4 +1,5 @@
import getpass import getpass
import locale
import logging import logging
import os import os
import platform import platform
@@ -405,6 +406,8 @@ def start_gui():
init_logger(logger) init_logger(logger)
locale.setlocale(locale.LC_TIME, "")
# prevent multiple instances # prevent multiple instances
if (app.acquire_lock() or "--no-lock" in sys.argv) and verify_server(): if (app.acquire_lock() or "--no-lock" in sys.argv) and verify_server():
app.init_ui() app.init_ui()