diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2009-02-11 13:58:57 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2009-02-11 13:58:57 +0300 |
commit | 200069062e086644f032cdbabc31a14cb9e59395 (patch) | |
tree | a3dd95af4412ed9d6a482f7bb5d5dd5c44356529 /src/common/connection_handlers.py | |
parent | 7dba2f909ffaf48fa8c92efd977fc004d5762d86 (diff) |
fix localetime() call. Fixes #4798
Diffstat (limited to 'src/common/connection_handlers.py')
-rw-r--r-- | src/common/connection_handlers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index bd511ae2c..a1cde3402 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1640,7 +1640,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, qp = iq_obj.setTag('time', namespace=common.xmpp.NS_TIME_REVISED) qp.setTagData('utc', strftime('%Y-%m-%dT%H:%M:%SZ', gmtime())) - isdst = time.localtime().tm_isdst + isdst = localtime().tm_isdst zone = -(timezone, altzone)[isdst] / 60 tzo = (zone / 60, abs(zone % 60)) qp.setTagData('tzo', '%+03d:%02d' % (tzo)) |