fix offset for some timezones computation. Fixes #6749

This commit is contained in:
Yann Leboulanger 2011-01-12 06:56:28 +01:00
parent 75f32f538b
commit bb0eb5a9eb
1 changed files with 1 additions and 1 deletions

View File

@ -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)