From 200069062e086644f032cdbabc31a14cb9e59395 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 11 Feb 2009 10:58:57 +0000 Subject: fix localetime() call. Fixes #4798 --- src/common/connection_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/connection_handlers.py') 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)) -- cgit v1.2.3