chartjs / chartjs-adapter-date-fns

date-fns adapter for Chart.js
MIT License
100 stars 35 forks source link

[date-fns v1] added format() locale support + parse() validity check #3

Closed olivermuc closed 5 years ago

olivermuc commented 5 years ago

This adds both, a date-fns locale config option to format() as well as a validity check for parse(). Please review for merge.

kurkle commented 5 years ago

options is passed only to the format() method but should we adopt the same strategy as the Luxon plugin and pass it to all the date-fns methods?

true, parse supports options too (only one for v1 though). Don't think any others do though.