mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
enable GetTimeZoneInformation in _getsystime
svn path=/trunk/; revision=38188
This commit is contained in:
parent
ecae93aaa2
commit
2b40f401d6
1 changed files with 8 additions and 8 deletions
|
@ -19,6 +19,8 @@ unsigned int _getsystime(struct tm* tp)
|
||||||
{
|
{
|
||||||
SYSTEMTIME Time;
|
SYSTEMTIME Time;
|
||||||
int i;
|
int i;
|
||||||
|
DWORD TimeZoneId;
|
||||||
|
TIME_ZONE_INFORMATION TimeZoneInformation;
|
||||||
|
|
||||||
GetLocalTime(&Time);
|
GetLocalTime(&Time);
|
||||||
|
|
||||||
|
@ -32,14 +34,12 @@ unsigned int _getsystime(struct tm* tp)
|
||||||
|
|
||||||
tp->tm_isdst = -1;
|
tp->tm_isdst = -1;
|
||||||
|
|
||||||
//FIXME GetTimeZoneInformation currently not in kernel32
|
TimeZoneId = GetTimeZoneInformation(&TimeZoneInformation);
|
||||||
|
if (TimeZoneId == TIME_ZONE_ID_DAYLIGHT){
|
||||||
//TimeZoneId = GetTimeZoneInformation(&TimeZoneInformation );
|
tp->tm_isdst = 1;
|
||||||
//if ( TimeZoneId == TIME_ZONE_ID_DAYLIGHT ) {
|
}
|
||||||
// tp->tm_isdst = 1;
|
else
|
||||||
//}
|
tp->tm_isdst = 0;
|
||||||
//else
|
|
||||||
// tp->tm_isdst = 0;
|
|
||||||
|
|
||||||
if (tp->tm_year % 4 == 0) {
|
if (tp->tm_year % 4 == 0) {
|
||||||
if (tp->tm_year % 100 != 0)
|
if (tp->tm_year % 100 != 0)
|
||||||
|
|
Loading…
Reference in a new issue