mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
Update timestamp to include date
This commit is contained in:
parent
7851c4f7a2
commit
2641fcc4bb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user