projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7851c4f
)
Update timestamp to include date
author
Craig Robbins
<kde.psych@gmail.com>
Tue, 24 Mar 2015 16:29:24 +0000
(
02:29
+1000)
committer
Craig Robbins
<kde.psych@gmail.com>
Tue, 24 Mar 2015 16:30:17 +0000
(
02:30
+1000)
src/gettime.h
patch
|
blob
|
history
diff --git
a/src/gettime.h
b/src/gettime.h
index 2a6a211b88b3176850a719a486f7d3f3fb1fdb17..44c1590262290546aa5b5dc2a465936856276f3c 100644
(file)
--- 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;
}