mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Fixed: Display human readable version of file timestamps
This commit is contained in:
parent
b2409763f9
commit
ba5a164ec8
1 changed files with 2 additions and 2 deletions
|
@ -1517,8 +1517,8 @@ void CPatchManager::applyDate (const string &sFilename, uint32 nDate)
|
|||
// _utimbuf utb;
|
||||
// utb.actime = utb.modtime = nDate;
|
||||
setRWAccess(sFilename, false);
|
||||
ucstring s = CI18N::get("uiChangeDate") + " " + NLMISC::CFile::getFilename(sFilename) + " " + toString(NLMISC::CFile::getFileModificationDate (sFilename)) +
|
||||
" -> " + toString(nDate);
|
||||
ucstring s = CI18N::get("uiChangeDate") + " " + NLMISC::CFile::getFilename(sFilename) + " " + timestampToHumanReadable(NLMISC::CFile::getFileModificationDate (sFilename)) +
|
||||
" -> " + timestampToHumanReadable(nDate);
|
||||
setState(true,s);
|
||||
|
||||
if (!NLMISC::CFile::setFileModificationDate(sFilename, nDate))
|
||||
|
|
Loading…
Reference in a new issue