From 477e5a509352bb0dbe642a00c9a1f57641f7bc3a Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 3 Jan 2013 04:16:14 +0400 Subject: [PATCH] fix client local time --- src/tooltips.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index 6fe799a89..445235c6a 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -567,8 +567,7 @@ class RosterTooltip(NotificationAreaTooltip): # 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 show += text if self.account and \