correctly decode string returned by strftime when we get a jabber:iq:time request. fixes #3569

This commit is contained in:
Yann Leboulanger 2007-11-21 09:49:18 +00:00
parent 420246c26a
commit 1c7c459c5f
1 changed files with 2 additions and 1 deletions

View File

@ -1418,7 +1418,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
qp = iq_obj.getTag('query')
qp.setTagData('utc', strftime('%Y%m%dT%T', gmtime()))
qp.setTagData('tz', tzname[daylight])
qp.setTagData('display', strftime('%c', localtime()))
qp.setTagData('display', helpers.decode_string(strftime('%c',
localtime())))
self.connection.send(iq_obj)
raise common.xmpp.NodeProcessed