Closed ai-matulis closed 5 years ago
@@ -23,9 +23,10 @@ isRequired, className, meta, + utils, } = this.props; const { touched, error } = meta; return ( <div className="picker"> @@ -26,10 +27,10 @@ } = this.props; const { touched, error } = meta; return ( <div className="picker"> - <MuiPickersUtilsProvider utils={DateFnsUtils} locale={locale}> + <MuiPickersUtilsProvider utils={utils} locale={locale}> <PickerComponent {...options} label={<FieldTitle @@ -62,6 +63,7 @@ labelTime: PropTypes.string, className: PropTypes.string, locale: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), + utils: PropTypes.func, }; _makePicker.defaultProps = { @@ -75,6 +77,7 @@ labelTime: '', className: '', locale: undefined, + utils: DateFnsUtils, }; return _makePicker; };
Implemented in react-admin-date-inputs@1.0.18
react-admin-date-inputs@1.0.18