]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Display the correct date in the redirector report
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Tue, 20 Oct 2015 17:43:56 +0000 (19:43 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Tue, 20 Oct 2015 17:43:56 +0000 (19:43 +0200)
Due to a typo in the source code, any date in October would be displayed as
month 0, November as month 1 and December as month 2.

Thanks to Evgeniy Yakushev for reporting this bug

redirector.c

index 23e8508b79e49b64a80bc360598b477cdce31ce6..10a047e40d86ec9f6bae1de20e56f55523fb55ef 100644 (file)
@@ -520,7 +520,7 @@ void redirector_report(void)
                        exit(EXIT_FAILURE);
                }
 
-               computedate(data2/10000,(data2/100)%10,data2%100,&t);
+               computedate(data2/10000,(data2/100)%100,data2%100,&t);
                strftime(data,sizeof(data),"%x",&t);
 
                new_user=false;