Very easy time comparison against astro binding not working

Hi,
I am trying to automate a switch depending on sunset and sunrise and made a very easy blockly script to campere the times.

However there seems to be a probblem with the data coming from the astro binding and the script is not working.

When I chnage the data from the items to a set time it works without any problems.

Can somebody help?

Maybe this will help:

Log out what the two Items are set to and see if you can see some pattern when it doesn’t work.