Commit 14806181 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight…

kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight saving changes' has been unset.
parent bce8b677
......@@ -207,7 +207,9 @@ static LONG get_tz_bias(const TIME_ZONE_INFORMATION *tzinfo, DWORD tz_id)
switch (tz_id)
{
case TIME_ZONE_ID_DAYLIGHT:
return tzinfo->DaylightBias;
if (memcmp(&tzinfo->StandardDate, &tzinfo->DaylightDate, sizeof(tzinfo->DaylightDate)) != 0)
return tzinfo->DaylightBias;
/* fall through */
case TIME_ZONE_ID_STANDARD:
return tzinfo->StandardBias;
......
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