Skip to content
Snippets Groups Projects
Commit 2641fcc4 authored by Zeno-'s avatar Zeno-
Browse files

Update timestamp to include date

parent 7851c4f7
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,8 @@ inline std::string getTimestamp()
// This is not really thread-safe but it won't break anything
// except its own output, so just go with it.
struct tm *tm = localtime(&t);
char cs[20];
strftime(cs, 20, "%H:%M:%S", tm);
char cs[20]; //YYYY-MM-DD HH:MM:SS + '\0'
strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
return cs;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment