Update datepicker.js

fix a timepicker's bug