summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index 685bce3..9c0b93a 100644
--- a/log.c
+++ b/log.c
@@ -44,7 +44,7 @@ Log* Log::getInstance() {
int Log::init(string fileName) {
char timebuf[128];
time_t now = time(NULL);
- strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S GMT", gmtime(&now));
+ strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S GMT", localtime(&now));
if (fileName != "") {
mLogFile = new ofstream();