summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug.h b/debug.h
index 047741c2..75c7b5b3 100644
--- a/debug.h
+++ b/debug.h
@@ -92,10 +92,10 @@ inline bool _debug_active(const char * const cls) {
}
#define DEBUG_PRINT_(x) DEBUG_PRINT(_debug_cls, x)
-#define DEBUG_PRINT_TIME(cls, x) { \
- char buf[256]; \
- std::strftime(buf, 255, "%Y/%m/%d", std::gmtime(&x)); \
- DEBUG_PRINT(cls, #x << " is " << buf); \
+#define DEBUG_PRINT_TIME(cls, x) { \
+ char buf[256]; \
+ std::strftime(buf, 255, "%Y/%m/%d", std::localtime(&x)); \
+ DEBUG_PRINT(cls, #x << " is " << buf); \
}
#define DEBUG_PRINT_TIME_(x) DEBUG_PRINT_TIME(_debug_cls, x)