Remove date-fns
fraxachun opened this issue · comments
Franz Unger commented
Is it possible to remove it? Who would do it?
Niko Sams commented
As we don't need it for formatting, there is nothing react-admin can do with it.
applications still can use date-fns if they need it.
I would suggest you remove it as part of the next release
Simon Radner commented
At the moment it is used for formatting, but this should be refactored so that in future react-intl does the formatting?
Niko Sams commented
date-fns has 2 components:
- FormatLocalized: applications should switch to react-intl
- LocaleContextProvider: used by FormatLocalized AND also provides a locale name (useLocaleName) which is used by Date*Picker to use the correct momentjs locale. This also h as to be converted to react-intl somehow