How to set time widget restriction?