changeset 23534:20da64b2e104

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.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 20 Jun 2008 05:15:49 +0000
parents 8aa7e01bc4d5
children fd276936164f
files libpurple/protocols/msn/oim.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/oim.c	Fri Jun 20 04:58:20 2008 +0000
+++ b/libpurple/protocols/msn/oim.c	Fri Jun 20 05:15:49 2008 +0000
@@ -480,7 +480,7 @@
 				long sys_tzoff;
 #endif
 
-				if (!offset_positive)
+				if (offset_positive)
 					tzoff *= -1;
 
 				t.tm_year -= 1900;
@@ -490,7 +490,7 @@
 					tzoff += sys_tzoff;
 #else
 #ifdef HAVE_TM_GMTOFF
-				tzoff -= t.tm_gmtoff;
+				tzoff += t.tm_gmtoff;
 #else
 #	ifdef HAVE_TIMEZONE
 				tzset();    /* making sure */