mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-05 07:16:18 +00:00
change to system_clock for times converted to time_t
This commit is contained in:
@@ -323,7 +323,7 @@ void TConsole::Command_Debug(const std::string&, const std::vector<std::string>&
|
||||
}
|
||||
State += "Disconnected";
|
||||
}
|
||||
auto Now = std::chrono::high_resolution_clock::now();
|
||||
auto Now = std::chrono::system_clock::now();
|
||||
auto Seconds = std::chrono::duration_cast<std::chrono::seconds>(Now - Locked->ConnectionTime);
|
||||
std::string ConnectedSince = fmt::format("{:%Y/%m/%d %H:%M:%S}, {:%H:%M:%S} ago ({} seconds)",
|
||||
fmt::localtime(std::chrono::system_clock::to_time_t(Locked->ConnectionTime)),
|
||||
|
||||
Reference in New Issue
Block a user