Ticket #364: tz.patch
File tz.patch, 683 bytes (added by , 17 years ago) |
---|
-
client/hostinfo_win.C
89 89 int get_timezone(int& timezone) { 90 90 91 91 TIME_ZONE_INFORMATION tzi; 92 ZeroMemory(&tzi, sizeof(TIME_ZONE_INFORMATION)); 92 93 93 memset(&tzi, '\0', sizeof(TIME_ZONE_INFORMATION));94 DWORD result = GetTimeZoneInformation(&tzi); 94 95 95 GetTimeZoneInformation(&tzi); 96 if (result == TIME_ZONE_ID_DAYLIGHT) { 97 timezone = -(tzi.DaylightBias * 60); 98 } else { 99 timezone = -(tzi.StandardBias * 60); 100 } 96 101 97 timezone = -(tzi.Bias * 60);98 99 102 return 0; 100 103 } 101 104