[Psi-devel] [patch] Entity time support

Maciek Niedzielski machekku at uaznia.net
Fri Jan 19 12:50:14 PST 2007


Maciek Niedzielski wrote:
> I wrote a patch that:
> 1) replies to urn:xmpp:time and jabber:iq:time queries
> 2) gets contact's timezone via urn:xmpp:time and displays contact's
> current time and timezone information in tooltip / userinfo dialog.

Two things I forgot to mention:

SystemInfo::timezoneOffset() used to return offset in hours, but there
are timezones with offsets like xx:30, so I changed this (and updated
all places where the value is used) to return offset in minutes. It was
easy on Windows, but I don't know how to do this on other platforms, so
- for now - I just multiplied old value by 60. Someone please take a
look at this. (systeminfo.cpp, marked with "FIX-ME").

Iris uses "timeZone" spelling, Psi - "timezone". Maybe it would be good
to agree on one spelling.

-- 
Maciek
 xmpp:machekku at uaznia.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20070119/b70c0a00/attachment.pgp 


More information about the psi-devel mailing list