fix offset for some timezones computation. Fixes #6749
This commit is contained in:
parent
75f32f538b
commit
bb0eb5a9eb
1 changed files with 1 additions and 1 deletions
|
@ -1519,7 +1519,7 @@ ConnectionJingle, ConnectionIBBytestream):
|
||||||
qp = iq_obj.setTag('time', namespace=common.xmpp.NS_TIME_REVISED)
|
qp = iq_obj.setTag('time', namespace=common.xmpp.NS_TIME_REVISED)
|
||||||
qp.setTagData('utc', strftime('%Y-%m-%dT%H:%M:%SZ', gmtime()))
|
qp.setTagData('utc', strftime('%Y-%m-%dT%H:%M:%SZ', gmtime()))
|
||||||
isdst = localtime().tm_isdst
|
isdst = localtime().tm_isdst
|
||||||
zone = -(timezone, altzone)[isdst] / 60
|
zone = -(timezone, altzone)[isdst] / 60.0
|
||||||
tzo = (zone / 60, abs(zone % 60))
|
tzo = (zone / 60, abs(zone % 60))
|
||||||
qp.setTagData('tzo', '%+03d:%02d' % (tzo))
|
qp.setTagData('tzo', '%+03d:%02d' % (tzo))
|
||||||
self.connection.send(iq_obj)
|
self.connection.send(iq_obj)
|
||||||
|
|
Loading…
Add table
Reference in a new issue