diff --git a/TimeSeries.pm b/TimeSeries.pm index 9d592ac..eb0350d 100644 --- a/TimeSeries.pm +++ b/TimeSeries.pm @@ -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';