mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
90_at.pm: do not allow absolute timespec with rel/rep flags (Forum #135119)
git-svn-id: https://svn.fhem.de/fhem/trunk@28004 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7ff204570d
commit
edd50df2f4
@ -68,6 +68,8 @@ at_Define($$)
|
||||
$abstime = $tspec;
|
||||
|
||||
} elsif($tspec =~ m/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)$/) {
|
||||
return "relative(+) or repeat(*) flag with absolute timespec"
|
||||
if($rel || $rep);
|
||||
my ($y,$m,$d,$h,$m2,$s) = ($1,$2,$3,$4,$5,$6);
|
||||
$abstime = mktime($s,$m2,$h,$d,$m-1,$y-1900, 0,0,-1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user