From 2b40f401d65791576ef8fd27fad678f716d04c1c Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 19 Dec 2008 19:57:21 +0000 Subject: [PATCH] enable GetTimeZoneInformation in _getsystime svn path=/trunk/; revision=38188 --- reactos/lib/sdk/crt/sys_stat/systime.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reactos/lib/sdk/crt/sys_stat/systime.c b/reactos/lib/sdk/crt/sys_stat/systime.c index fbf938cd135..395b7b8399a 100644 --- a/reactos/lib/sdk/crt/sys_stat/systime.c +++ b/reactos/lib/sdk/crt/sys_stat/systime.c @@ -19,6 +19,8 @@ unsigned int _getsystime(struct tm* tp) { SYSTEMTIME Time; int i; + DWORD TimeZoneId; + TIME_ZONE_INFORMATION TimeZoneInformation; GetLocalTime(&Time); @@ -32,14 +34,12 @@ unsigned int _getsystime(struct tm* tp) tp->tm_isdst = -1; - //FIXME GetTimeZoneInformation currently not in kernel32 - - //TimeZoneId = GetTimeZoneInformation(&TimeZoneInformation ); - //if ( TimeZoneId == TIME_ZONE_ID_DAYLIGHT ) { - // tp->tm_isdst = 1; - //} - //else - // tp->tm_isdst = 0; + TimeZoneId = GetTimeZoneInformation(&TimeZoneInformation); + if (TimeZoneId == TIME_ZONE_ID_DAYLIGHT){ + tp->tm_isdst = 1; + } + else + tp->tm_isdst = 0; if (tp->tm_year % 4 == 0) { if (tp->tm_year % 100 != 0)