The script is doing what is has to do, however, a error is generated:
I delete most lines of the script to the script below. This script is stil generating the error.2020-04-02 16:19:00.223 Error: dzVents: Error: (3.0.1) sDate was invalid. Reset to 2020-4-2 16:19:0.41
Does somebody knows what is happening?
Code: Select all
return {
on =
{
timer = {'every minute'},
},
data =
{
RVhoogStartTijd = {initial = '2020-1-1 0:0.000' },
},
execute = function(dz)
local Time = require('Time')
dz.data.RVhoogStartTijd = tostring(dz.time.raw)
local verschil = Time'dz.time.raw'.compare(Time(dz.data.RVhoogStartTijd)).seconds
dz.log(' verschil = ' .. verschil )
end
}