mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
98_SVG.pm: fixedrange:year & endplottoday & leap-year issue (Forum #108829)
git-svn-id: https://svn.fhem.de/fhem/trunk@21313 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
df08636f4b
commit
efabc75e3e
@ -889,8 +889,11 @@ SVG_substcfg($$$$$$)
|
||||
sub
|
||||
SVG_tspec(@)
|
||||
{
|
||||
my $d=$_[3];
|
||||
$d = 28 if($d==29 && $_[4]==1 && $_[5]%4);
|
||||
$d = 30 if($d==31 && ($_[4] =~ /3|5|8|10/));
|
||||
return sprintf("%04d-%02d-%02d_%02d:%02d:%02d",
|
||||
$_[5]+1900,$_[4]+1,$_[3],$_[2],$_[1],$_[0]);
|
||||
$_[5]+1900,$_[4]+1,$d,$_[2],$_[1],$_[0]);
|
||||
}
|
||||
|
||||
##################
|
||||
|
Loading…
Reference in New Issue
Block a user