Working with ZonedDateTime in Function rules
I have need to use java.time.ZonedDateTime in a Function rule. The following code does not produce any errors when saving the Function rule but does produce an error when generating the function ("ZonedDateTime cannot be resolved to a type"). NOTE that I do have "java.time.ZonedDateTime" listed in Packages imported and I also tried "java.time.*".
ZonedDateTime myDateTime = ZonedDateTime.now();
When I change this line code to the following I can save and generate the Function without any errors.
java.time.ZonedDateTime myDateTime = java.time.ZonedDateTime.now();
This is quite laborious and sloppy when handling multiple dates so I want to know why listing the package doesn't work or what I can do to avoid having to put "java.time." in front of everything.
***Edited by Moderator Marije to add Capability tags***