Fix timeOfDay for night time.