Skip to content

Remove date-fns and add dayjs #97

@rperez89

Description

@rperez89

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions