[ros-diffs] [tkreuzer] 38188: enable GetTimeZoneInformation in _getsystime

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Dec 19 20:57:22 CET 2008


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/systime.c?rev=38188&r1=38187&r2=38188&view=diff
==============================================================================
--- 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)



More information about the Ros-diffs mailing list