Fixed: Display human readable version of file timestamps

This commit is contained in:
kervala 2016-02-20 19:06:15 +01:00
parent b2409763f9
commit ba5a164ec8

View file

@ -1517,8 +1517,8 @@ void CPatchManager::applyDate (const string &sFilename, uint32 nDate)
// _utimbuf utb; // _utimbuf utb;
// utb.actime = utb.modtime = nDate; // utb.actime = utb.modtime = nDate;
setRWAccess(sFilename, false); setRWAccess(sFilename, false);
ucstring s = CI18N::get("uiChangeDate") + " " + NLMISC::CFile::getFilename(sFilename) + " " + toString(NLMISC::CFile::getFileModificationDate (sFilename)) + ucstring s = CI18N::get("uiChangeDate") + " " + NLMISC::CFile::getFilename(sFilename) + " " + timestampToHumanReadable(NLMISC::CFile::getFileModificationDate (sFilename)) +
" -> " + toString(nDate); " -> " + timestampToHumanReadable(nDate);
setState(true,s); setState(true,s);
if (!NLMISC::CFile::setFileModificationDate(sFilename, nDate)) if (!NLMISC::CFile::setFileModificationDate(sFilename, nDate))