comparison src/util.c @ 13163:b230ed49c5d1

[gaim-migrate @ 15526] I was backwards on the WIN32 timezone offset. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 07 Feb 2006 18:14:37 +0000
parents 4bb701a8736f
children 33bef17125c2
comparison
equal deleted inserted replaced
13162:dc0375c4984a 13163:b230ed49c5d1
502 #ifdef _WIN32 502 #ifdef _WIN32
503 TIME_ZONE_INFORMATION tzi; 503 TIME_ZONE_INFORMATION tzi;
504 DWORD ret; 504 DWORD ret;
505 if ((ret = GetTimeZoneInformation(&tzi)) != TIME_ZONE_ID_INVALID) 505 if ((ret = GetTimeZoneInformation(&tzi)) != TIME_ZONE_ID_INVALID)
506 { 506 {
507 off = tzi.Bias * 60; 507 off = -(tzi.Bias * 60);
508 if (ret == TIME_ZONE_ID_DAYLIGHT) 508 if (ret == TIME_ZONE_ID_DAYLIGHT)
509 off -= tzi.DaylightBias * 60; 509 off -= tzi.DaylightBias * 60;
510 } 510 }
511 else 511 else
512 return ""; 512 return "";