Using the JS Scripting addon, running this code
console.log(time.toZDT().betweenTimes('22:00', '05:00'))
gives an error
org.graalvm.polyglot.PolyglotException: TypeError: (intermediate value).toZDT(...).betweenTimes is not a function
at <js>.:program(<eval>:10) ~[?:?]
at org.graalvm.polyglot.Context.eval(Context.java:379) ~[?:?]
...
I have many other JS Scripting rules, both UI and file based, running successfully.
Similar functions like toToday() and isClose() work OK
The problem was noticed on 3.4.0.M2 and having tried clear-cache, reboot etc then upgraded to M3.
As a side note the upgrade to M4 does not work for me because of https://community.openhab.org/t/js-scripting-all-scripts-stop-working-when-upgrading-to-3-4-0-m4/140837
Has anybody else seen this?
- Platform information:
- Hardware: RPI4 8G
- OS: Raspbian GNU/Linux 10 (buster). OpenHABian
- Java Runtime Environment: openjdk 11.0.16
- openHAB version: 3.4.0.M3