set time to alert