Author: ilardig
Date: Wed Mar 30 13:02:57 2011
New Revision: 51205
URL:
http://svn.reactos.org/svn/reactos?rev=51205&view=rev
Log:
[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.
Modified:
trunk/reactos/base/shell/cmd/dir.c
Modified: trunk/reactos/base/shell/cmd/dir.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/dir.c?rev=5…
==============================================================================
--- trunk/reactos/base/shell/cmd/dir.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/dir.c [iso-8859-1] Wed Mar 30 13:02:57 2011
@@ -680,10 +680,10 @@
{
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 */