fix the time picker js bug