better way of doing #1872

This commit is contained in:
Dimitur Kirov 2006-04-19 09:08:27 +00:00
parent 70da8ae011
commit 84e7b2926b
1 changed files with 1 additions and 1 deletions

View File

@ -610,7 +610,7 @@ class ConversationTextview:
format += '%X' + after_str
# format comes as unicode, because of day_str.
# 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 + ' ',
*other_tags_for_time)
elif gajim.config.get('print_time') == 'sometimes':