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

Commit

Permalink
fix(datepicker): fix error message
Browse files Browse the repository at this point in the history
- Change error message to reflect what is officially supported as a model value

Closes #5198
Fixes #5191
  • Loading branch information
wesleycho committed Jan 10, 2016
1 parent 9d0269e commit aa010b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
if (isValid) {
this.activeDate = dateParser.fromTimezone(date, ngModelOptions.timezone);
} else if (!$datepickerSuppressError) {
$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.');
$log.error('Datepicker directive: "ng-model" value must be a Date object');
}
}
this.refreshView();
Expand Down

0 comments on commit aa010b0

Please sign in to comment.