On Mon, Sep 02, 2002 at 04:51:01PM +0100, Ian Collier wrote:
> > What does the Windows client?
> Er... don't know as I try to avoid Windows. <g>
The Windows client doesn't change the timezone offset in summer (winter).
I don't know if it sets the correct one upon installation, but you can
set it to any value afterwards.
I have someone on my list who appears to be in the GMT-5000 zone :-)

> Unfortunately, we have only as much information as the ICQ server
> tells us, which may not be enough information to get it right.
The timezone offset of a user is set when he sets his general
information. That means we would have to update our general info as soon
as our offset changes. I don't know any portable and easy way to find out
when the next DST/non-DST switch occurs. We would have to do a binary
search over the next half year or sit in a loop and call localtime()...
On the other hand we could no longer cache the timezone offset of a user.
How about an option to locally save the TZ environment value for
everyone on the list? We would then have to change the TZ variable to
get the local time of a user, but doing so is not a good idea in an
application with serveral threads... We could fork...
I think that's too much effort to get it right in a client that only
a small fraction of all ICQ users use.

  Daniel


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to