Reduce coupling to date.h by calling C++17 chrono functions

This commit is contained in:
Howard Hinnant
2021-02-18 14:09:49 -05:00
committed by manojsdoshi
parent 64e4a89470
commit 9932a19139
15 changed files with 34 additions and 48 deletions

View File

@@ -2589,8 +2589,8 @@ NetworkOPsImp::getServerInfo(bool human, bool admin, bool counters)
info[jss::server_state] = strOperatingMode(admin);
info[jss::time] = to_string(date::floor<std::chrono::microseconds>(
std::chrono::system_clock::now()));
info[jss::time] = to_string(
floor<std::chrono::microseconds>(std::chrono::system_clock::now()));
if (needNetworkLedger_)
info[jss::network_ledger] = "waiting";