From: robert Date: Fri, 13 May 2005 21:53:56 +0000 (+0000) Subject: make year separator move correctly to Jan 1 X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=commitdiff_plain;h=dfe923be2cbefae0a48476f58286050d26bad830 make year separator move correctly to Jan 1 --- diff --git a/include/classes/rrdstat.php-class b/include/classes/rrdstat.php-class index 15cca53..083ccfe 100644 --- a/include/classes/rrdstat.php-class +++ b/include/classes/rrdstat.php-class @@ -319,8 +319,8 @@ class rrdstat { $duration = isset($gconf['duration'])?$gconf['duration']:396*86400; // 365+31 days $slice = isset($gconf['slice'])?$gconf['slice']:86400; // 1 day // vertical lines at month borders - $addSpecial .= ' VRULE:'.strtotime(date('Y-01-01')).'#FF0000'; - $addSpecial .= ' VRULE:'.strtotime(date('Y-01-01').' -1 year').'#FF0000'; + $addSpecial .= ' VRULE:'.strtotime(date('Y-01-01 12:00:00')).'#FF0000'; + $addSpecial .= ' VRULE:'.strtotime(date('Y-01-01 12:00:00').' -1 year').'#FF0000'; } else { $duration = isset($gconf['duration'])?$gconf['duration']:$this->rrd_step*500; // 500 steps