diff --git a/src/logging.c b/src/logging.c index 0af2787f5c..4d2740b562 100644 --- a/src/logging.c +++ b/src/logging.c @@ -95,7 +95,7 @@ static int get_time(struct tm **ti) s = db.now_real_s; - *ti = localtime(&s); + *ti = gmtime(&s); if(!(*ti)){ fprintf(stderr, "Error obtaining system time.\n"); return 1;