Try moving the "On every tick" event before "is IsDay" event.
If this doesn't work, could you share you project file? It's difficult to try running this code in my head :)
.
On a side note, you can't run anything every 0.01s. On most devices the framerate will be around 60, which equals to 0.016s per frame, and you can't trigger any events faster than that.
If I understand correctly, the full cycle takes 24 minutes? Then updating the whole thing on every frame is probably an overkill. I would do it every 0.5-1 second or so, it should still look smooth.