fix contact time

This commit is contained in:
Denis Fomin 2013-01-04 22:00:16 +04:00
parent 078abc9b7a
commit a3b770b636
1 changed files with 2 additions and 3 deletions

View File

@ -346,8 +346,7 @@ class VcardWindow:
stats += ': ' + self.contact.status
if self.contact.last_status_time:
stats += '\n' + _('since %s') % time.strftime('%c',
self.contact.last_status_time).decode(
locale.getpreferredencoding())
self.contact.last_status_time)
for c in connected_contact_list:
if c.resource != self.contact.resource:
stats += '\n'
@ -356,7 +355,7 @@ class VcardWindow:
stats += ': ' + c.status
if c.last_status_time:
stats += '\n' + _('since %s') % time.strftime('%c',
c.last_status_time).decode(locale.getpreferredencoding())
c.last_status_time)
else: # Maybe gc_vcard ?
stats = helpers.get_uf_show(self.contact.show)
if self.contact.status: