Adjustment to datepicker model when closing the time input