]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.dat: Fix date offset
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 14:54:58 +0000 (15:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 14:54:58 +0000 (15:54 +0100)
The CGI is starting from zero.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/logs.cgi/ids.dat

index 5125813e6171d154c9e902b5dd10ab6118105ba9..9bfcb27170fe057ffd8b56e5dbe232b50f79294b 100644 (file)
@@ -206,7 +206,7 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'generate report'}") {
 
        # Assign easy to access variables.
        my $day = $cgiparams{'DAY'};
-       my $month = $cgiparams{'MONTH'};
+       my $month = $cgiparams{'MONTH'} + 1;
        my $year = $year;
 
        # Calculate the year value.