Fix year computation
This commit is contained in:
parent
aa026a4eaf
commit
49c27c7a08
|
@ -552,7 +552,7 @@ sub get_ticks {
|
||||||
$sec = $min = $hour = 0;
|
$sec = $min = $hour = 0;
|
||||||
$mday = 1;
|
$mday = 1;
|
||||||
$mon = 0;
|
$mon = 0;
|
||||||
$year = floor($year / 5) * 5;
|
$year = floor(($year + 1900) / 5) * 5;
|
||||||
$firsttime = timelocal($sec,$min,$hour,$mday,$mon,$year);
|
$firsttime = timelocal($sec,$min,$hour,$mday,$mon,$year);
|
||||||
|
|
||||||
$label = '%Y-%m-%d';
|
$label = '%Y-%m-%d';
|
||||||
|
|
Loading…
Reference in New Issue