Fix year computation

This commit is contained in:
Peter J. Holzer 2021-11-17 12:12:26 +01:00
parent aa026a4eaf
commit 49c27c7a08
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ sub get_ticks {
$sec = $min = $hour = 0;
$mday = 1;
$mon = 0;
$year = floor($year / 5) * 5;
$year = floor(($year + 1900) / 5) * 5;
$firsttime = timelocal($sec,$min,$hour,$mday,$mon,$year);
$label = '%Y-%m-%d';