Fix compile error on some platform

This commit is contained in:
Tindy X committed 2020-02-19 22:52:50 +08:00
1 parent 19742630f5
commit 452c9299f1
3 files changed
+33 -15

No files matched your search

+1 -1
View File
@@ -1796,7 +1796,7 @@ std::string netchToSSD(std::vector<nodeInfo> &nodes, std::string &group, std::st
const time_t rawtime = to_int(expiry);
char buffer[30];
struct tm *dt = localtime(&rawtime);
strftime(buffer, sizeof(buffer), "%F %R", dt);
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M", dt);
writer.Key("expiry");
writer.String(buffer);
}