Commit cc65aa2d authored by jan.koester's avatar jan.koester
Browse files

tes

parent 6177e24e
Loading
Loading
Loading
Loading
Loading
+4 −0
Changes for src/log.cpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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();