1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

add sort for changedate

This commit is contained in:
Laserlicht
2024-01-07 20:17:44 +01:00
committed by GitHub
parent d6cf050b6b
commit 8b262e49a6
8 changed files with 27 additions and 7 deletions

View File

@@ -64,8 +64,8 @@ void CMapInfo::saveInit(const ResourcePath & file)
originalFileURI = file.getOriginalName();
fullFileURI = boost::filesystem::canonical(*CResourceHandler::get()->getResourceName(file)).string();
countPlayers();
std::time_t time = boost::filesystem::last_write_time(*CResourceHandler::get()->getResourceName(file));
date = TextOperations::getFormattedDateTimeLocal(time);
lastWrite = boost::filesystem::last_write_time(*CResourceHandler::get()->getResourceName(file));
date = TextOperations::getFormattedDateTimeLocal(lastWrite);
// We absolutely not need this data for lobby and server will read it from save
// FIXME: actually we don't want them in CMapHeader!