Fix issues with the time that the night mode kicks in