- Fix one "kernel32_winetest time" test. All time tests passed now

svn path=/trunk/; revision=41884
This commit is contained in:
Dmitry Chapyshev 2009-07-11 13:35:38 +00:00
parent 0937dce274
commit fad802aace

View file

@ -203,6 +203,27 @@ TIME_CompTimeZoneID( const TIME_ZONE_INFORMATION *pTZinfo, FILETIME *lpFileTime,
return retval;
}
/***********************************************************************
* TIME_TimeZoneID
*
* Calculates whether daylight savings is on now.
*
* PARAMS
* pTzi [in] Timezone info.
*
* RETURNS
* TIME_ZONE_ID_INVALID An error occurred
* TIME_ZONE_ID_UNKNOWN There are no transition time known
* TIME_ZONE_ID_STANDARD Current time is standard time
* TIME_ZONE_ID_DAYLIGHT Current time is daylight savings time
*/
static DWORD TIME_ZoneID( const TIME_ZONE_INFORMATION *pTzi )
{
FILETIME ftTime;
GetSystemTimeAsFileTime( &ftTime);
return TIME_CompTimeZoneID( pTzi, &ftTime, FALSE);
}
/***********************************************************************
* TIME_GetTimezoneBias
*
@ -534,7 +555,7 @@ GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
return TIME_ZONE_ID_INVALID;
}
return(SharedUserData->TimeZoneId);
return TIME_ZoneID(lpTimeZoneInformation);
}