Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit aa010b0

Browse files
committed
fix(datepicker): fix error message
- Change error message to reflect what is officially supported as a model value Closes #5198 Fixes #5191
1 parent 9d0269e commit aa010b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datepicker/datepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
119119
if (isValid) {
120120
this.activeDate = dateParser.fromTimezone(date, ngModelOptions.timezone);
121121
} else if (!$datepickerSuppressError) {
122-
$log.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.');
122+
$log.error('Datepicker directive: "ng-model" value must be a Date object');
123123
}
124124
}
125125
this.refreshView();

0 commit comments

Comments
 (0)