diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-03-25 02:29:24 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-03-25 02:30:17 +1000 |
commit | 2641fcc4bb9c3fae58e28a2b73921dd1fb419d8a (patch) | |
tree | 37a664e68a35330d998fd2ab94fc15d989d9f61a | |
parent | 7851c4f7a2673477cf80a38842d77efbe5a0a915 (diff) | |
download | minetest-2641fcc4bb9c3fae58e28a2b73921dd1fb419d8a.tar.gz minetest-2641fcc4bb9c3fae58e28a2b73921dd1fb419d8a.tar.bz2 minetest-2641fcc4bb9c3fae58e28a2b73921dd1fb419d8a.zip |
Update timestamp to include date
-rw-r--r-- | src/gettime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gettime.h b/src/gettime.h index 2a6a211b8..44c159026 100644 --- a/src/gettime.h +++ b/src/gettime.h @@ -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; } |