in JRuby it’s easy.
new_time = LocalTime.of(HourIttem.state.to_i, MinuteItem.state.to_i)
MyDateTimeItem.update(new_time.to_zoned_date_time)
In RulesDSL there’s a whole circus of type casting and dance required. There’s also an intermediate creation of ZonedDateTime.now.with(new_time)
.