Confused with my If Condition rule

The time can’t simultaneously be after sunset and before sunrise.

You would need to switch it to an OR condition (any).