Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove date-fns and add dayjs #43

Open
rperez89 opened this issue Dec 10, 2019 · 0 comments
Open

Remove date-fns and add dayjs #43

rperez89 opened this issue Dec 10, 2019 · 0 comments

Comments

@rperez89
Copy link
Member

New version of date-fns does not accept strings as arguments anymore. We should move to use
https://github.com/iamkun/dayjs as the aragon-ui did

Functions now don't accept strings as arguments. Strings should be parsed using parseISO (ISO 8601) or parse.

See this post for more details.

// Before v2.0.0
addDays('2016-01-01', 1)

// v2.0.0 onward
addDays(parseISO('2016-01-01'), 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant