cpw.qulogic.msn: 97c85653: Change msn_oim_parse_timestamp to match ...

qulogic at pidgin.im qulogic at pidgin.im
Sat Jun 21 04:01:17 EDT 2008


-----------------------------------------------------------------
Revision: 97c85653d5e31d6a1a59bdbe7d96b57be7d19af7
Ancestor: 19c9dd8bd46b844b09dd206ec82e39a5da699623
Author: qulogic at pidgin.im
Date: 2008-06-20T05:15:49
Branch: im.pidgin.cpw.qulogic.msn
URL: http://d.pidgin.im/viewmtn/revision/info/97c85653d5e31d6a1a59bdbe7d96b57be7d19af7

Modified files:
        libpurple/protocols/msn/oim.c

ChangeLog: 

Change msn_oim_parse_timestamp to match purple_str_to_time more 
closely. This fixes the OIM timestamp being 2*(TZ offset) hours off, 
and hopefully any other timestamp bug like that.

References #5379.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/oim.c	b2c53a132afc0238ceb4ee2b79615e8c260c0b29
+++ libpurple/protocols/msn/oim.c	74e29f789e57694ae8bda13438fefd2d500e15d1
@@ -480,7 +480,7 @@ msn_oim_parse_timestamp(const char *time
 				long sys_tzoff;
 #endif
 
-				if (!offset_positive)
+				if (offset_positive)
 					tzoff *= -1;
 
 				t.tm_year -= 1900;
@@ -490,7 +490,7 @@ msn_oim_parse_timestamp(const char *time
 					tzoff += sys_tzoff;
 #else
 #ifdef HAVE_TM_GMTOFF
-				tzoff -= t.tm_gmtoff;
+				tzoff += t.tm_gmtoff;
 #else
 #	ifdef HAVE_TIMEZONE
 				tzset();    /* making sure */


More information about the Commits mailing list