PROPLANTA: time bug fix

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6860 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch
2014-11-01 21:15:25 +00:00
parent 48d6a994d2
commit b5c391a1c6

View File

@@ -176,7 +176,7 @@ sub text
if ( 2 <= $curCol && $curCol <= 5 )
{
$readingName = "fc".($curCol-2)."_".$curReadingName;
if ( $text =~ m/([012]?\d[.:][0-5]\d)/ )
if ( $text =~ m/([012-]?[-0-9][.:][-0-5][-0-9])/ )
{
$text = $1;
$text =~ tr/./:/; # Punkt durch Doppelpunkt ersetzen
@@ -190,11 +190,11 @@ sub text
if ( $curCol == 3 )
{
$readingName = $curReadingName;
if ( $text =~ m/([012]?\d[.:][0-5]\d)/ )
if ( $text =~ m/([012-]?[-0-9][.:][-0-5][-0-9])/ )
{
$text = $1;
$text =~ tr/./:/; # Punkt durch Doppelpunkt ersetzen
}
}
push( @texte, $readingName."|".$text );
}
}