# HG changeset patch # User Elliott Sales de Andrade # Date 1213938949 0 # Node ID 20da64b2e10415c13449c34cac8f87ca1182d453 # Parent 8aa7e01bc4d5d89939128c5f66cc2a11422fec4d 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. diff -r 8aa7e01bc4d5 -r 20da64b2e104 libpurple/protocols/msn/oim.c --- 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 */