fix for time guard on sunrise/sunset