Author: tkreuzer
Date: Fri Dec 19 13:57:21 2008
New Revision: 38188
URL: 
http://svn.reactos.org/svn/reactos?rev=38188&view=rev
Log:
enable GetTimeZoneInformation in _getsystime
Modified:
    trunk/reactos/lib/sdk/crt/sys_stat/systime.c
Modified: trunk/reactos/lib/sdk/crt/sys_stat/systime.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/sys_stat/systi…
==============================================================================
--- trunk/reactos/lib/sdk/crt/sys_stat/systime.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/sys_stat/systime.c [iso-8859-1] Fri Dec 19 13:57:21 2008
@@ -19,6 +19,8 @@
 {
     SYSTEMTIME Time;
     int i;
+    DWORD TimeZoneId;
+    TIME_ZONE_INFORMATION TimeZoneInformation;
     GetLocalTime(&Time);
@@ -32,14 +34,12 @@
     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)