2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

bugfix for duration (sub d)

git-svn-id: https://svn.fhem.de/fhem/trunk@3042 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2013-04-07 16:16:21 +00:00
parent beab3fc6dc
commit 22fa4af3b1

View File

@ -290,8 +290,7 @@ sub d {
my @c= split("P", $d);
$sign= -1 if($c[0] eq "-");
shift @c if($c[0] =~ m/[\+\-]/);
my ($dw,$dt)= split("T", $c[0]);
my ($dw,$dt)= split("T", $c[1]);
$dt="" unless defined($dt);
if($dw =~ m/(\d+)D$/) {
$t+= 86400*$1; # days