From 6c9385e01d127f8ffa6a783b2a571d8ac4b73666 Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
Date: Thu, 29 Oct 2009 11:31:55 +0100
Subject: [PATCH] Fixed issue 77 (Incorrect time in log files) thanks to
 youwantalex

---
 redis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/redis.c b/redis.c
index 16f2e2e72..e4f1a7633 100644
--- a/redis.c
+++ b/redis.c
@@ -671,7 +671,7 @@ static void redisLog(int level, const char *fmt, ...) {
         time_t now;
 
         now = time(NULL);
-        strftime(buf,64,"%d %b %H:%M:%S",gmtime(&now));
+        strftime(buf,64,"%d %b %H:%M:%S",localtime(&now));
         fprintf(fp,"%s %c ",buf,c[level]);
         vfprintf(fp, fmt, ap);
         fprintf(fp,"\n");