10_ZWave.pm: fix the clock for Sunday (Forum #66016)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13284 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-30 10:04:21 +00:00
parent 0f815f61e6
commit 94e88e735e

View File

@ -2402,7 +2402,7 @@ sub
ZWave_clockSet() ZWave_clockSet()
{ {
my @l = localtime(); my @l = localtime();
return ("", sprintf("04%02x%02x", ($l[6]<<5)|$l[2], $l[1])); return ("", sprintf("04%02x%02x", (($l[6] ? $l[6]:7)<<5)|$l[2], $l[1]));
} }
sub sub