From a3b770b6366173ffc13656948b8bba3d4eff8650 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Fri, 4 Jan 2013 22:00:16 +0400 Subject: [PATCH] fix contact time --- src/vcard.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vcard.py b/src/vcard.py index 49bb235e3..fce29925d 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -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: