mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
This commit is contained in:
@@ -276,7 +276,7 @@ std::string Log::GetTimestampStr()
|
||||
// SS seconds (2 digits 00-59)
|
||||
try
|
||||
{
|
||||
return Trinity::StringFormat("%04d-%02d-%02d_%02d-%02d-%02d",
|
||||
return Trinity::StringFormat("{:04}-{:02}-{:02}_{:02}-{:02}-{:02}",
|
||||
aTm.tm_year + 1900, aTm.tm_mon + 1, aTm.tm_mday, aTm.tm_hour, aTm.tm_min, aTm.tm_sec);
|
||||
}
|
||||
catch (std::exception const& ex)
|
||||
|
||||
Reference in New Issue
Block a user