mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[CMD] Fix a typo in dir that led to omitting the last character in the AM/PM time format.
See issue #6061 for more details. svn path=/trunk/; revision=51205
This commit is contained in:
@@ -680,10 +680,10 @@ FormatTime(TCHAR *lpTime, LPSYSTEMTIME dt)
|
||||
{
|
||||
case 0: /* 12 hour format */
|
||||
default:
|
||||
return _stprintf(lpTime,_T("%02d%c%02u%c"),
|
||||
return _stprintf(lpTime,_T("%02d%c%02u %cM"),
|
||||
(dt->wHour == 0 ? 12 : (dt->wHour <= 12 ? dt->wHour : dt->wHour - 12)),
|
||||
cTimeSeparator,
|
||||
dt->wMinute, (dt->wHour <= 11 ? _T('a') : _T('p')));
|
||||
dt->wMinute, (dt->wHour <= 11 ? _T('A') : _T('P')));
|
||||
break;
|
||||
|
||||
case 1: /* 24 hour format */
|
||||
|
||||
Reference in New Issue
Block a user