Mercurial > pidgin
comparison libpurple/protocols/msn/oim.c @ 20496:c32fbef16656
Fixes #2990, apparently I used the wrong #define. Also fix + timezone
parsing
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sat, 08 Sep 2007 23:57:59 +0000 |
parents | 2d8999540239 |
children | 6ef43e723595 7e7add38a02f |
comparison
equal
deleted
inserted
replaced
20490:2d8999540239 | 20496:c32fbef16656 |
---|---|
441 strcmp(months[t.tm_mon], month_str) != 0; t.tm_mon++); | 441 strcmp(months[t.tm_mon], month_str) != 0; t.tm_mon++); |
442 if (months[t.tm_mon] != NULL) { | 442 if (months[t.tm_mon] != NULL) { |
443 if (*tz_str == '-') { | 443 if (*tz_str == '-') { |
444 offset_positive = FALSE; | 444 offset_positive = FALSE; |
445 tz_ptr++; | 445 tz_ptr++; |
446 } else if (*tz_str == '+') { | |
447 tz_ptr++; | |
446 } | 448 } |
447 | 449 |
448 if (sscanf(tz_ptr, "%02d%02d", &tzhrs, &tzmins) == 2) { | 450 if (sscanf(tz_ptr, "%02d%02d", &tzhrs, &tzmins) == 2) { |
449 t.tm_year -= 1900; | 451 t.tm_year -= 1900; |
450 #if HAVE_TIMEZONE | 452 #if HAVE_TM_GMTOFF |
451 t.tm_gmtoff = tzhrs * 60 * 60 + tzmins * 60; | 453 t.tm_gmtoff = tzhrs * 60 * 60 + tzmins * 60; |
452 if (!offset_positive) | 454 if (!offset_positive) |
453 t.tm_gmtoff *= -1; | 455 t.tm_gmtoff *= -1; |
454 #endif | 456 #endif |
455 t.tm_isdst = 0; | 457 t.tm_isdst = 0; |