Unable to automatically set time