diff --git a/lib/picker.js b/lib/picker.js index bf072158..f448e948 100644 --- a/lib/picker.js +++ b/lib/picker.js @@ -1087,10 +1087,10 @@ PickerConstructor._ = { /** - * Tell if something is a date object. + * Tell if something resembles a date object. */ isDate: function( value ) { - return {}.toString.call( value ).indexOf( 'Date' ) > -1 && this.isInteger( value.getDate() ) + return value.getDate && this.isInteger( value.getDate() ) },