Loading src/log.cpp +4 −0 Changes for src/log.cpp: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -60,7 +60,11 @@ std::string authdb::Log::timestamp() { auto now = std::chrono::system_clock::now(); auto t = std::chrono::system_clock::to_time_t(now); struct tm buf; #ifdef _WIN32 localtime_s(&buf, &t); #else localtime_r(&t, &buf); #endif std::ostringstream os; os << std::put_time(&buf, "%Y-%m-%d %H:%M:%S"); return os.str(); Loading Loading
src/log.cpp +4 −0 Changes for src/log.cpp: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -60,7 +60,11 @@ std::string authdb::Log::timestamp() { auto now = std::chrono::system_clock::now(); auto t = std::chrono::system_clock::to_time_t(now); struct tm buf; #ifdef _WIN32 localtime_s(&buf, &t); #else localtime_r(&t, &buf); #endif std::ostringstream os; os << std::put_time(&buf, "%Y-%m-%d %H:%M:%S"); return os.str(); Loading