I´ve found how to solve it:
$scope.updateDatePicker = function () {
setTimeout(function () {
$("#date_entrega").datepicker("update");
$("#date_devolucion").datepicker("update");
}, 0);
};
Then calling it at the end of getDaysClosedFromLocation!
I don't know if it's a good solution, but it solved my problem!