Blockly ZonedDateTime.now

Hi.
I have upgrade my system to 4.0.2 but now one of my rules dont work


anymore.
Can someone help me please?

I get this error:
Failed to execute script:
org.graalvm.polyglot.PolyglotException: TypeError: (intermediate value).ZonedDateTime.now(…).getHour is not a function

Thanks
Nikos

Ok i found the Solution
I had to declare the now blockly as a variable and then used it.

It would also work like this without a variable

Unbenannt

I dont want now -1 day. I want from midnight until now.

Ah, OK then like this

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.