better way of doing #1872
This commit is contained in:
parent
70da8ae011
commit
84e7b2926b
|
@ -610,7 +610,7 @@ class ConversationTextview:
|
||||||
format += '%X' + after_str
|
format += '%X' + after_str
|
||||||
# format comes as unicode, because of day_str.
|
# format comes as unicode, because of day_str.
|
||||||
# we convert it to the encoding that we want
|
# we convert it to the encoding that we want
|
||||||
tim_format = time.strftime(format.encode('utf-8'), tim)
|
tim_format = time.strftime(format, tim).encode('utf-8')
|
||||||
buffer.insert_with_tags_by_name(end_iter, tim_format + ' ',
|
buffer.insert_with_tags_by_name(end_iter, tim_format + ' ',
|
||||||
*other_tags_for_time)
|
*other_tags_for_time)
|
||||||
elif gajim.config.get('print_time') == 'sometimes':
|
elif gajim.config.get('print_time') == 'sometimes':
|
||||||
|
|
Loading…
Reference in New Issue