Fix addDays to recognize datepicker dependency.