mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
- Fix one "kernel32_winetest time" test. All time tests passed now
svn path=/trunk/; revision=41884
This commit is contained in:
parent
0937dce274
commit
fad802aace
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue