From 23377a3ed8ebef05598600de4b2ea96fb4018255 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Tue, 14 May 2019 20:46:28 +0200 Subject: [PATCH] [modules/datetime] Fix fallback Fallback handling for setting the locale was completely broken. fixes #386 --- bumblebee/modules/datetime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/datetime.py b/bumblebee/modules/datetime.py index 2335316..e9afeb2 100644 --- a/bumblebee/modules/datetime.py +++ b/bumblebee/modules/datetime.py @@ -40,7 +40,7 @@ class Module(bumblebee.engine.Module): try: locale.setlocale(locale.LC_TIME, lcl.split(".")) except Exception as e: - locale.setlocale(locale.LC_TIME, lcl.split("en_US.UTF-8")) + locale.setlocale(locale.LC_TIME, ('en_US', 'UTF-8')) def get_time(self, widget): enc = locale.getpreferredencoding()