material-ui-pickers icon indicating copy to clipboard operation
material-ui-pickers copied to clipboard

Date days are added with additional digit

Open gairom opened this issue 8 years ago • 3 comments

Environment

Tech Version
material-ui-pickers rc14
material-ui 3.0.1
React 16.4.2
Browser Chrome
Peer library date-fns alpha.16

it also happens on the official docs example: https://material-ui-pickers.firebaseapp.com/guides/formats

Expected behavior

show the day properly

Actual behavior

days are added with 3rd digit.

image

image

gairom avatar Sep 02 '18 04:09 gairom

@gairom ,

I have the same issue. I found out the issue is with the format.

The correct format is case sensitive format="dd/MM/yyyy"

make sure the dd is not DD.

chaoriwei avatar Sep 03 '18 02:09 chaoriwei

You must update the formats strings for date fns v16

But this issue as far I understand — that on one of example format strings are not update.

dmtrKovalenko avatar Sep 03 '18 04:09 dmtrKovalenko

Yep, D -> d fixed it, thanks!

gairom avatar Sep 03 '18 18:09 gairom