On Sat, Aug 31, 2002 at 09:49:18PM +0200, Tim van Erven wrote:
> Also, in 1.2.0a the "time" box of the other person always seems to be
> wrong (which I mentioned before for 1.0.4).  We are both in BST (i.e.,
> GMT+1) zone, although Licq thinks the other person is in GMT.  The thing
> is, it *adds* an hour to my current time, whereas it should subtract one
> hour if they are GMT.

Licq always sets the timezone offset to the non DST offset but
calculates the unix time of incoming packets with the current offset.
The attached patch should fix it.

  Daniel

diff -ruwd licq-20020831/src/icqd-srv.cpp licq-20020831-my/src/icqd-srv.cpp
--- licq-20020831/src/icqd-srv.cpp      Fri Aug 23 07:45:05 2002
+++ licq-20020831-my/src/icqd-srv.cpp   Sat Aug 31 23:18:41 2002
@@ -2412,7 +2412,7 @@
       sendTM.tm_hour = msg.UnpackChar();
       sendTM.tm_min = msg.UnpackChar();
       sendTM.tm_sec = 0;
-      sendTM.tm_isdst = -1;
+      sendTM.tm_isdst = 0;
       nTimeSent = mktime(&sendTM);
       
       // Msg type & flags

Reply via email to