Use GetLocalTime instead of GetSystemTime.
authorHartmut Birr <osexpert@googlemail.com>
Thu, 11 Aug 2005 20:41:20 +0000 (20:41 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Thu, 11 Aug 2005 20:41:20 +0000 (20:41 +0000)
svn path=/trunk/; revision=17310

reactos/subsys/system/cmd/locale.c

index 1f49e84..fe77f67 100644 (file)
@@ -71,8 +71,8 @@ VOID PrintDate (VOID)
 VOID PrintTime (VOID)
 {
        TCHAR szMsg[RC_STRING_MAX_SIZE];        
 VOID PrintTime (VOID)
 {
        TCHAR szMsg[RC_STRING_MAX_SIZE];        
-  SYSTEMTIME t;
-  GetSystemTime(&t); 
+        SYSTEMTIME t;
+        GetLocalTime(&t); 
   
        LoadString(CMD_ModuleHandle, STRING_LOCALE_HELP1, szMsg, RC_STRING_MAX_SIZE);
        ConOutPrintf(_T("%s: %02d%c%02d%c%02d%c%02d\n"), szMsg,  t.wHour, cTimeSeparator,
   
        LoadString(CMD_ModuleHandle, STRING_LOCALE_HELP1, szMsg, RC_STRING_MAX_SIZE);
        ConOutPrintf(_T("%s: %02d%c%02d%c%02d%c%02d\n"), szMsg,  t.wHour, cTimeSeparator,