Use GetLocalTime instead of GetSystemTime.

svn path=/trunk/; revision=17310
This commit is contained in:
Hartmut Birr 2005-08-11 20:41:20 +00:00
parent f17e695843
commit 749cee8834

View file

@ -71,8 +71,8 @@ VOID PrintDate (VOID)
VOID PrintTime (VOID) VOID PrintTime (VOID)
{ {
TCHAR szMsg[RC_STRING_MAX_SIZE]; TCHAR szMsg[RC_STRING_MAX_SIZE];
SYSTEMTIME t; SYSTEMTIME t;
GetSystemTime(&t); GetLocalTime(&t);
LoadString(CMD_ModuleHandle, STRING_LOCALE_HELP1, szMsg, RC_STRING_MAX_SIZE); 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, ConOutPrintf(_T("%s: %02d%c%02d%c%02d%c%02d\n"), szMsg, t.wHour, cTimeSeparator,