kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight saving changes' has been unset.
This commit is contained in:
parent
bce8b67785
commit
148061814c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue