time.strftime returns locale encoded string. So decode it. Thx Dimitur
This commit is contained in:
parent
faa9296e92
commit
f70f178527
|
@ -28,6 +28,7 @@ import gtk
|
||||||
import gobject
|
import gobject
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
import locale
|
||||||
|
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
import message_control
|
import message_control
|
||||||
|
@ -472,7 +473,10 @@ class RosterTooltip(NotificationAreaTooltip):
|
||||||
else:
|
else:
|
||||||
text = _('Since %s')
|
text = _('Since %s')
|
||||||
|
|
||||||
text = text % time.strftime('%c', contact.last_status_time)
|
# time.strftime returns locale encoded string
|
||||||
|
local_time = time.strftime('%c', contact.last_status_time)
|
||||||
|
local_time = local_time.decode(locale.getpreferredencoding())
|
||||||
|
text = text % local_time
|
||||||
info += '\n<span style="italic">%s</span>' % text
|
info += '\n<span style="italic">%s</span>' % text
|
||||||
|
|
||||||
for type_ in ('jpeg', 'png'):
|
for type_ in ('jpeg', 'png'):
|
||||||
|
|
Loading…
Reference in New Issue