Fix check for the time of day setting the background to light or dark