1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

format fix

This commit is contained in:
Michael
2023-08-12 00:00:35 +02:00
committed by GitHub
parent f0b60cf166
commit 4d507f3d8a

View File

@@ -63,11 +63,11 @@ void CMapInfo::saveInit(const ResourceID & file)
countPlayers();
std::time_t time = boost::filesystem::last_write_time(*CResourceHandler::get()->getResourceName(file));
std::tm tm = *std::localtime(&time);
std::tm tm = *std::localtime(&time);
std::stringstream s;
s.imbue(std::locale(""));
s << std::put_time(&tm, "%x %X");
date = s.str();
s << std::put_time(&tm, "%x %X");
date = s.str();
// We absolutely not need this data for lobby and server will read it from save
// FIXME: actually we don't want them in CMapHeader!