mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
changed explorer slightly
svn path=/trunk/; revision=7633
This commit is contained in:
parent
490c55529b
commit
782a2efe59
1 changed files with 1 additions and 6 deletions
|
@ -381,15 +381,10 @@ void ClockWindow::TimerTick()
|
||||||
|
|
||||||
bool ClockWindow::FormatTime()
|
bool ClockWindow::FormatTime()
|
||||||
{
|
{
|
||||||
SYSTEMTIME systime;
|
|
||||||
TCHAR buffer[16];
|
TCHAR buffer[16];
|
||||||
TCHAR TimeFormat[] = TEXT("hh':'mm tt");
|
TCHAR TimeFormat[] = TEXT("hh':'mm tt");
|
||||||
GetLocalTime(&systime);
|
|
||||||
|
|
||||||
GetTimeFormat(LOCALE_USER_DEFAULT,0,NULL,TimeFormat,buffer,sizeof(buffer));
|
GetTimeFormatW(LOCALE_USER_DEFAULT,0,NULL,TimeFormat,buffer,sizeof(buffer));
|
||||||
|
|
||||||
//_stprintf(buffer, TEXT("%02d:%02d:%02d"), systime.wHour, systime.wMinute, systime.wSecond);
|
|
||||||
//_stprintf(buffer, TEXT("%02d:%02d"), systime.wHour, systime.wMinute);
|
|
||||||
|
|
||||||
if (_tcscmp(buffer, _time)) {
|
if (_tcscmp(buffer, _time)) {
|
||||||
_tcscpy(_time, buffer);
|
_tcscpy(_time, buffer);
|
||||||
|
|
Loading…
Reference in a new issue