Fixed timezone parsing

This commit is contained in:
Alexander Cherniuk 2009-11-24 14:24:35 +02:00
parent 3a190b8328
commit 94f6d6b79a

View file

@ -1735,7 +1735,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
# wrong answer # wrong answer
return return
tzo = qp.getTag('tzo').getData() tzo = qp.getTag('tzo').getData()
if tzo == 'Z': if tzo.lower() == 'z':
tzo = '0:0' tzo = '0:0'
tzoh, tzom = tzo.split(':') tzoh, tzom = tzo.split(':')
utc_time = qp.getTag('utc').getData() utc_time = qp.getTag('utc').getData()