From bb0eb5a9ebfd40312f2e103fffccfafa875a727f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 12 Jan 2011 06:56:28 +0100 Subject: [PATCH] fix offset for some timezones computation. Fixes #6749 --- src/common/connection_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 169b5c7a0..a4c13ae97 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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)