99_Utils.pm: remove Z from the time_str2num split (Forum #110545)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21768 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-04-24 14:22:12 +00:00
parent 70305c0134
commit 8a82b7e1b6

View File

@ -17,7 +17,7 @@ time_str2num($)
my ($str) = @_; my ($str) = @_;
my @a; my @a;
return time() if(!$str); return time() if(!$str);
@a = split("[ZT: -]", $str); # 31652, 110545, @a = split("[T: -]", $str); # 31652, 110545,
return mktime($a[5],$a[4],$a[3],$a[2],$a[1]-1,$a[0]-1900,0,0,-1); return mktime($a[5],$a[4],$a[3],$a[2],$a[1]-1,$a[0]-1900,0,0,-1);
} }