SVG X-Axis fix, second try (Forum #25768).

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6354 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-08-03 16:09:08 +00:00
parent 58441d95fe
commit 182c444ba6

View File

@ -1210,7 +1210,8 @@ SVG_render($$$$$$$$$)
$initoffset = $step; $initoffset = $step;
if(AttrVal($FW_wname, "endPlotNow", undef) && $ddur>1.1 && $ddur<7.1) { if(AttrVal($FW_wname, "endPlotNow", undef) && $ddur>1.1 && $ddur<7.1) {
$initoffset -= (86400-time()%86400); # Forum #25768 my $now = time();
$initoffset -= ($now+fhemTzOffset($now))%86400; # Forum #25768
} }
$initoffset = int(($step/2)/86400)*86400 if($aligntext); $initoffset = int(($step/2)/86400)*86400 if($aligntext);