mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Fix compile error on some platform
This commit is contained in:
3 files changed
+33
-15
No files matched your search
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user