OH3_Blockly: hour of datetime() -> always 0

Hello together

I’m struggling with the function “hour of datetime” in OH3 in blockly. The Log show me that “hour of datetime” always give 0. What could be the reason?

Many thanks

The placeholder „datetime 2022-12-13“ are set to beginning of the day. The hour component is 0.

If you want to check against the current hour insert the „now“ block.

many thanks!

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