Hi can anyone help me with this:
I have following rule:
rule "Boot"
when
System started
then
BootTime.sendCommand(new DateTimeType(now.toGregorianCalendar))
end
I get the message “The constructor DateTimeType(Calendar) is deprecated” when the rule is evaluated so I changed it to:
rule "Boot"
when
System started
then
BootTime.sendCommand(new DateTimeType(ZonedDateTime.now))
end
Unfortunately it does not fix the issue it still gives the same warning althou it should now use the constructor ‘DateTimeType(ZonedDateTime)’
Thanks
Alex