Skip to content

Year is incorrect when using date-fns #790

@chrise86

Description

@chrise86

Considering the following example which uses date parsing with date-fns:

https://codesandbox.io/s/50l9o3mljn

Initially, dates are rendered correctly:

screen shot 2018-09-11 at 16 00 22

However, after selecting a day the year is wrong:

screen shot 2018-09-11 at 16 01 30

UPDATE: looks like I need to use yyyy instead of YYYY.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions