From: Frédéric Marchal Date: Sun, 26 Aug 2012 17:19:50 +0000 (+0200) Subject: Fix the reported year in the extended log X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47b06c7a14f1db7c829cb2ec0219fbff2f8acca8;p=thirdparty%2Fsarg.git Fix the reported year in the extended log The year was not properly encoded in the internal structure. --- diff --git a/readlog_extlog.c b/readlog_extlog.c index 31d124d..91c8628 100644 --- a/readlog_extlog.c +++ b/readlog_extlog.c @@ -261,7 +261,7 @@ static char *ExtLog_GetDate(char *Line,struct tm *Date) if (*Line!='\"') return(NULL);//missing closing quote. ++Line; } - Date->tm_year=year; + Date->tm_year=year-1900; Date->tm_mon=month; Date->tm_mday=day; return(Line);