Skip to content
Snippets Groups Projects
Commit eed1a0c7 authored by nkour's avatar nkour
Browse files

show time correctly [it was failing at least in Windows]. see #2514

parent a37b9460
No related branches found
No related tags found
No related merge requests found
......@@ -758,7 +758,7 @@ def get_time_to_show(self, tim):
format += day_str + ' '
format += '%X'
tim_format = time.strftime(format, tim)
if locale.getpreferredencoding() == 'UTF-8':
if locale.getpreferredencoding() != 'KOI8-R':
# if tim_format comes as unicode because of day_str.
# we convert it to the encoding that we want (and that is utf-8)
tim_format = helpers.ensure_utf8_string(tim_format)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment