mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 06:36:04 +00:00
98_SVG.pm: fix month=>year zoom for off < 12 (Forum #118880)
git-svn-id: https://svn.fhem.de/fhem/trunk@23762 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fbb9b87d00
commit
8062554a10
@ -601,7 +601,8 @@ SVG_zoomLink($$$)
|
||||
} elsif($val eq "month") {
|
||||
$w_off = ($off < 0) ? $w_off*12: int($w_off/4);
|
||||
} elsif($val eq "year") {
|
||||
$w_off = int($w_off/12);
|
||||
my @t = localtime();
|
||||
$w_off = int(($w_off+$t[4]-11)/12); # 118880
|
||||
} elsif($val eq "10years") {
|
||||
$w_off = int($w_off/120);
|
||||
} elsif($val eq "20years") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user