restrict max/min time for timepicker

use a dynamic way: when time is oubound the limit, the timepicker and
time picked will automatically turned to default min/max settings