mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
70305c0134
commit
8a82b7e1b6
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user