mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:43:08 +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
1 changed files with 22 additions and 1 deletions
|
@ -203,6 +203,27 @@ TIME_CompTimeZoneID( const TIME_ZONE_INFORMATION *pTZinfo, FILETIME *lpFileTime,
|
||||||
return retval;
|
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
|
* TIME_GetTimezoneBias
|
||||||
*
|
*
|
||||||
|
@ -534,7 +555,7 @@ GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
|
||||||
return TIME_ZONE_ID_INVALID;
|
return TIME_ZONE_ID_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
return(SharedUserData->TimeZoneId);
|
return TIME_ZoneID(lpTimeZoneInformation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue