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

Year is incorrect when using date-fns #790

Closed
chrise86 opened this issue Sep 11, 2018 · 0 comments
Closed

Year is incorrect when using date-fns #790

chrise86 opened this issue Sep 11, 2018 · 0 comments

Comments

@chrise86
Copy link

chrise86 commented Sep 11, 2018

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.

@chrise86 chrise86 changed the title Formatting date breaks firstDayOfWeek Year is incorrect when using date-fns Sep 11, 2018
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