[modules/datetime] Fix fallback
Fallback handling for setting the locale was completely broken. fixes #386
This commit is contained in:
parent
c34ec25523
commit
23377a3ed8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue