Fix fuzzy time

This commit is contained in:
Linus Heckemann 2016-10-10 13:47:56 +01:00
parent e7479c52e2
commit 3dcdee70ba
1 changed files with 1 additions and 2 deletions

View File

@ -1323,8 +1323,7 @@ class ConversationTextview(GObject.GObject):
self.last_time_printout = time.mktime(tim)
end_iter = buffer_.get_end_iter()
if gajim.config.get('print_time_fuzzy') > 0:
ft = self.fc.fuzzy_time(gajim.config.get('print_time_fuzzy'), tim)
tim_format = ft.decode(locale.getpreferredencoding())
tim_format = self.fc.fuzzy_time(gajim.config.get('print_time_fuzzy'), tim)
else:
tim_format = self.get_time_to_show(tim, direction_mark)
buffer_.insert_with_tags_by_name(end_iter, tim_format + '\n',