mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
98_SVG.pm: fixing the fixedRange=year+endPlot* stuff (Forum #18267)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16123 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bda9d39e8b
commit
042d1be8cd
@ -1057,15 +1057,15 @@ SVG_calcOffsets($$)
|
||||
} elsif($zoom eq "year") {
|
||||
my @l = localtime($now);
|
||||
if(SVG_Attr($FW_wname, $wl, "endPlotToday", undef)) {
|
||||
$l[5] += ($off-1); $l[3]++; # 00:00 off+1 years ago
|
||||
$l[5] += ($off-1); # 00:00 off+1 years ago
|
||||
$SVG_devs{$d}{from} = SVG_tspec(3, 0, @l);
|
||||
$l[5]++; $l[3]--; $l[2]=23; $l[1]=59; # today, 23:59
|
||||
$l[5]++; $l[2]=23; $l[1]=59; # today, 23:59
|
||||
$SVG_devs{$d}{to} = SVG_tspec(0, 59, @l);
|
||||
|
||||
} elsif(SVG_Attr($FW_wname, $wl, "endPlotNow", undef)) {
|
||||
$l[5] += ($off-1); $l[3]++; # Now, off+1 years ago
|
||||
$l[5] += ($off-1); # Now, off+1 years ago
|
||||
$SVG_devs{$d}{from} = SVG_tspec(0, $l[0], @l);
|
||||
$l[5]++; $l[3]--; # now
|
||||
$l[5]++; # now
|
||||
$SVG_devs{$d}{to} = SVG_tspec(0, $l[0], @l);
|
||||
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user