Commit 40cd8463 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

_ILGetFileDate should convert the date to local time before generating

the string (_ILGetFileDateTime does not).
parent 50b5c29e
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment