From 7debff33abd23a45a5d5882dc5f76404e915b2ff Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sun, 29 Nov 2020 22:17:38 +0100 Subject: [PATCH] locale problems --- clock/api/converter.py | 2 -- dashboard/main.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/clock/api/converter.py b/clock/api/converter.py index 91428a8..d4f56b4 100644 --- a/clock/api/converter.py +++ b/clock/api/converter.py @@ -60,8 +60,6 @@ def time_converter(top="", bottom=""): if "-1" in bottom and len(bottom) != 2: time_split = [i for i in top] + ["-1", bottom[-1]] - - print(time_split) for i in range(4): x = digit_position[i][0] y = digit_position[i][1] diff --git a/dashboard/main.py b/dashboard/main.py index 519bac5..3bf68dd 100644 --- a/dashboard/main.py +++ b/dashboard/main.py @@ -3,7 +3,7 @@ import dash_bootstrap_components as dbc import dash_html_components as html import dash_core_components as dcc import locale -locale.setlocale(locale.LC_TIME, "de_DE") +locale.setlocale(locale.LC_TIME, "de_DE.utf8") #from dash.dependencies import Input, Output import datetime