mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
format fix
This commit is contained in:
parent
f0b60cf166
commit
4d507f3d8a
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user