Mercurial > libervia-backend
changeset 202:754e12eaea14
primitivus: fixed unicode issue on date in chat window
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Aug 2010 01:14:47 +0800 |
parents | 9e7bc7f09221 |
children | c75e56ec054a |
files | frontends/primitivus/chat.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/primitivus/chat.py Fri Aug 20 01:14:18 2010 +0800 +++ b/frontends/primitivus/chat.py Fri Aug 20 01:14:47 2010 +0800 @@ -63,7 +63,7 @@ render_txt = [] if self.parent.show_timestamp: time_format = "%c" if self.timestamp < self.parent.day_change else "%H:%M" #if the message was sent before today, we print the full date - render_txt.append(('date',"[%s]" % time.strftime(time_format, self.timestamp))) + render_txt.append(('date',"[%s]" % time.strftime(time_format, self.timestamp).decode('utf-8'))) if self.parent.show_short_nick: render_txt.append(('my_nick' if self.my_mess else 'other_nick',"**" if self.my_mess else "*")) else: