Name_n wrong.
if he wanna check if its day he have to check whether the day time is between 6 am and 6 pm (usual day time used for day....could be changed in the game constants but...) and not if the day time is greater than 6 am for example. that way the trigger would run even if itss 10 pm and thats definitly night.