Fix small problem in GetTimeZoneInformation().

This commit is contained in:
Rein Klazes 1998-12-24 14:39:25 +00:00 committed by Alexandre Julliard
parent 4caa2a1147
commit 8f1b5e6322
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION tzinfo)
memset(tzinfo, 0, sizeof(TIME_ZONE_INFORMATION));
gmt = time(NULL);
lt = mktime(localtime(&gmt));
tzinfo->Bias = (gmt - lt) / 60;
lt = mktime(gmtime(&gmt));
tzinfo->Bias = (lt - gmt) / 60;
tzinfo->StandardBias = 0;
tzinfo->DaylightBias = -60;