1Hive / dandelion-voting-app

Contains the Dandelion Voting app which implements an ACLOracle
GNU General Public License v3.0
5 stars 8 forks source link

Remove date-fns and add dayjs #43

Open rperez89 opened 4 years ago

rperez89 commented 4 years ago

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)