mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 16:56:04 +00:00
99_Utils.pm: change time_str2num split regexp (Forum #31652)
git-svn-id: https://svn.fhem.de/fhem/trunk@7461 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6e88577810
commit
23202c6537
@ -70,7 +70,7 @@ time_str2num($)
|
||||
my ($str) = @_;
|
||||
my @a;
|
||||
if($str) {
|
||||
@a = split("[- :]", $str);
|
||||
@a = split("[T: -]", $str);
|
||||
return mktime($a[5],$a[4],$a[3],$a[2],$a[1]-1,$a[0]-1900,0,0,-1);
|
||||
} else {
|
||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
||||
|
Loading…
x
Reference in New Issue
Block a user