From aa010b024e936b9ced66a58726d4fe591be9383c Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 10 Jan 2016 09:32:50 -0800 Subject: [PATCH] fix(datepicker): fix error message - Change error message to reflect what is officially supported as a model value Closes #5198 Fixes #5191 --- src/datepicker/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datepicker/datepicker.js b/src/datepicker/datepicker.js index 4204d95dd3..5ec93d034f 100644 --- a/src/datepicker/datepicker.js +++ b/src/datepicker/datepicker.js @@ -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();