1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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!