Resolve issue #64

This commit is contained in:
Gobinath 2017-02-13 09:55:08 -05:00
parent 8959f13b5d
commit 76d037faa1
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ def is_active_window_skipped(skip_break_window_classes, take_break_window_classe
Format time based on the system time. Format time based on the system time.
""" """
def format_time(time): def format_time(time):
system_locale = locale.setlocale(locale.LC_ALL, '') locale.setlocale(locale.LC_ALL, '')
system_locale = locale.getlocale(locale.LC_TIME)[0]
if not system_locale: if not system_locale:
system_locale = 'en_US.UTF-8' system_locale = 'en_US.UTF-8'
return babel.dates.format_time(time, format='short', locale=system_locale) return babel.dates.format_time(time, format='short', locale=system_locale)