Make dawn/dusk periods actually work.