Skip to content
Snippets Groups Projects
Commit bb0eb5a9 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix offset for some timezones computation. Fixes #6749

parent 75f32f53
No related branches found
No related tags found
No related merge requests found
......@@ -1519,7 +1519,7 @@ ConnectionJingle, ConnectionIBBytestream):
qp = iq_obj.setTag('time', namespace=common.xmpp.NS_TIME_REVISED)
qp.setTagData('utc', strftime('%Y-%m-%dT%H:%M:%SZ', gmtime()))
isdst = localtime().tm_isdst
zone = -(timezone, altzone)[isdst] / 60
zone = -(timezone, altzone)[isdst] / 60.0
tzo = (zone / 60, abs(zone % 60))
qp.setTagData('tzo', '%+03d:%02d' % (tzo))
self.connection.send(iq_obj)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment