correctly decode string returned by strftime when we get a jabber:iq:time request. fixes #3569
This commit is contained in:
parent
420246c26a
commit
1c7c459c5f
1 changed files with 2 additions and 1 deletions
|
@ -1418,7 +1418,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
qp = iq_obj.getTag('query')
|
qp = iq_obj.getTag('query')
|
||||||
qp.setTagData('utc', strftime('%Y%m%dT%T', gmtime()))
|
qp.setTagData('utc', strftime('%Y%m%dT%T', gmtime()))
|
||||||
qp.setTagData('tz', tzname[daylight])
|
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)
|
self.connection.send(iq_obj)
|
||||||
raise common.xmpp.NodeProcessed
|
raise common.xmpp.NodeProcessed
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue