Commit 98fde1bb authored by oscar's avatar oscar

提交时间保存

parent a02fd482
......@@ -20,7 +20,7 @@ std::string GetTimeStr(uint64_t timestamp)
ptr = localtime(&tt);
// printf("time: %d \n", tt);
char str[80];
strftime(str, sizeof(str), "%Y-%m-%dT%H:%M:%S", ptr);
strftime(str, sizeof(str), "%Y-%m-%d %H:%M:%S", ptr);
//2018-09-19 16:01:37.517
char tStr[128] = {};
sprintf(tStr, ".%d",misc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment