]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix the reported year in the extended log
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 26 Aug 2012 17:19:50 +0000 (19:19 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 26 Aug 2012 17:19:50 +0000 (19:19 +0200)
The year was not properly encoded in the internal structure.

readlog_extlog.c

index 31d124d271b5ea00ff87faa9c7f7983a1e3d1c05..91c86289832b20a007326404cf67fbcde06d6e4a 100644 (file)
@@ -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);