From c1cd0d22e019db95db4bd6b3d2d32e01f5957f4e Mon Sep 17 00:00:00 2001 From: Jason Edmeades Date: Fri, 19 Aug 2005 10:01:25 +0000 Subject: [PATCH] Add the time to the file display dialog modified column. --- dlls/shell32/pidl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c index 79cb49bdec3..892f523b0f3 100644 --- a/dlls/shell32/pidl.c +++ b/dlls/shell32/pidl.c @@ -1986,7 +1986,14 @@ BOOL _ILGetFileDate (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize) { FileTimeToLocalFileTime(&ft, &lft); FileTimeToSystemTime (&lft, &time); + ret = GetDateFormatA(LOCALE_USER_DEFAULT,DATE_SHORTDATE,&time, NULL, pOut, uOutSize); + if (ret) + { + /* Append space + time without seconds */ + pOut[ret-1] = ' '; + GetTimeFormatA(LOCALE_USER_DEFAULT, TIME_NOSECONDS, &time, NULL, &pOut[ret], uOutSize - ret); + } } else {