Date time transfer into item from the rule

See this topic:

zdt here is of type Java Time, so you have to use

val DateTimeType myDateTimeType = new DateTimeType(zdt) // conversion