mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
Fixed: Display human readable version of file timestamps
--HG-- branch : develop
This commit is contained in:
parent
0c7aeaaac7
commit
3487bf16ff
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue