Commit 8f1b5e63 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Fix small problem in GetTimeZoneInformation().

parent 4caa2a11
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment