_ILGetFileDate should convert the date to local time before generating

the string (_ILGetFileDateTime does not).
This commit is contained in:
Ulrich Czekalla 2000-04-11 19:36:35 +00:00 committed by Alexandre Julliard
parent 50b5c29e26
commit 40cd846356
1 changed files with 3 additions and 2 deletions

View File

@ -1555,12 +1555,13 @@ BOOL _ILGetFileDateTime(LPCITEMIDLIST pidl, FILETIME *pFt)
BOOL _ILGetFileDate (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
{
FILETIME ft;
FILETIME ft,lft;
SYSTEMTIME time;
if (! _ILGetFileDateTime( pidl, &ft )) return FALSE;
FileTimeToSystemTime (&ft, &time);
FileTimeToLocalFileTime(&ft, &lft);
FileTimeToSystemTime (&lft, &time);
return GetDateFormatA(LOCALE_USER_DEFAULT,DATE_SHORTDATE,&time, NULL, pOut, uOutSize);
}