57_Calendar.pm: minor bugfix from Forum #97350

git-svn-id: https://svn.fhem.de/fhem/trunk@18705 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2019-02-23 19:36:19 +00:00
parent 905a856584
commit c026a793fa

View File

@@ -2269,9 +2269,9 @@ sub Calendar_GetSecondsFromTimeSpec($) {
return ("", $1*86400);
}
# seconds
if($tspec =~ m/^[0-9]+s?$/) {
return ("", $tspec);
# seconds
if($tspec =~ m/^([0-9]+)s?$/) {
return ("", $1);
}
# D:HH:MM:SS