From cd59a2f1dd0e7c8ae643b6a206cd0dbd7f69f554 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 28 Nov 2004 06:54:01 +0000 Subject: [PATCH] fix bug #107442 - time stamp in log off. Use localtime vs gmtime --- src/err.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/err.c b/src/err.c index b84c81f0..76126ae3 100644 --- a/src/err.c +++ b/src/err.c @@ -121,7 +121,7 @@ void err_log(int level, unsigned int cat, char *fmt, ...) switch(err_logdestination) { case LOGDEST_LOGFILE: tt_now=time(NULL); - gmtime_r(&tt_now,&tm_now); + localtime_r(&tt_now,&tm_now); strftime(timebuf,sizeof(timebuf),"%F %T",&tm_now); fprintf(err_file,"%s: %s",timebuf,errbuf); if(!level) fprintf(err_file,"%s: Aborting\n",timebuf);