Reworked day/night checker