beznogno / pyicqt

Automatically exported from code.google.com/p/pyicqt
GNU General Public License v2.0
0 stars 0 forks source link

Error when requesting entity time. (A possible problem with encoding.) #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following steps will reproduce the problem.
1. Request the time of the transport with a stanza that looks like this
<iq id='18'
    to='icq.server.ru'
    type='get'
    xml:lang='ru'>
  <query xmlns='jabber:iq:time'/>
</iq>

The transport should respond with a stanza like this:
<iq from='icq.server.ru'
    id='18'
    type='result'
    to='user@server.ru/Work'>
  <query xmlns='jabber:iq:time'>
    <utc>20080407T18:01:46</utc>
    <tz>Северная Центр. Азия (лето)</tz>
    <display>Mon Apr 07 18:01:46 2008</display>
  </query>
</iq>

... but it does not respond at all.

I'm using
pyicqt 0.8b - SVN r0
Python 2.5/win32, Twisted 2.5.0
Microsoft Windows 2000 SP4 Russian

Please provide any additional information below.
I replaced the line
tz.addContent(str(time.tzname[1]))
with the following
tz.addContent("Timezone not available.")

in the file src\services\EntityTime.py
and it partially solved the problem.

Original issue reported on code.google.com by otto.g...@gmail.com on 7 Apr 2008 at 11:22

GoogleCodeExporter commented 9 years ago

Original comment by r000ns...@gmail.com on 5 Sep 2008 at 12:00

GoogleCodeExporter commented 9 years ago
<iq id='18'
    to='icq.server.ru'
    type='get'
    xml:lang='ru'>
  <query xmlns='urn:xmpp:time'/>
</iq>
This request should works

Original comment by r000ns...@gmail.com on 8 Nov 2008 at 3:16