fix contact time
This commit is contained in:
parent
078abc9b7a
commit
a3b770b636
|
@ -346,8 +346,7 @@ class VcardWindow:
|
||||||
stats += ': ' + self.contact.status
|
stats += ': ' + self.contact.status
|
||||||
if self.contact.last_status_time:
|
if self.contact.last_status_time:
|
||||||
stats += '\n' + _('since %s') % time.strftime('%c',
|
stats += '\n' + _('since %s') % time.strftime('%c',
|
||||||
self.contact.last_status_time).decode(
|
self.contact.last_status_time)
|
||||||
locale.getpreferredencoding())
|
|
||||||
for c in connected_contact_list:
|
for c in connected_contact_list:
|
||||||
if c.resource != self.contact.resource:
|
if c.resource != self.contact.resource:
|
||||||
stats += '\n'
|
stats += '\n'
|
||||||
|
@ -356,7 +355,7 @@ class VcardWindow:
|
||||||
stats += ': ' + c.status
|
stats += ': ' + c.status
|
||||||
if c.last_status_time:
|
if c.last_status_time:
|
||||||
stats += '\n' + _('since %s') % time.strftime('%c',
|
stats += '\n' + _('since %s') % time.strftime('%c',
|
||||||
c.last_status_time).decode(locale.getpreferredencoding())
|
c.last_status_time)
|
||||||
else: # Maybe gc_vcard ?
|
else: # Maybe gc_vcard ?
|
||||||
stats = helpers.get_uf_show(self.contact.show)
|
stats = helpers.get_uf_show(self.contact.show)
|
||||||
if self.contact.status:
|
if self.contact.status:
|
||||||
|
|
Loading…
Reference in New Issue