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

[DatePicker] October turns into September for some years when localized

Open amangeot opened this issue 9 years ago • 5 comments

Hello, There is a funny issue with some dates in DatePicker component when it is localized. Some years display "October" as "September" around 1990.

You can see it on the demo, going for the localized examples, with "fr locale" for example. Select year 1990, and go for September, then October: http://www.material-ui.com/#/components/date-picker

Tested on Windows 10, Chrome

amangeot avatar Jul 10 '17 14:07 amangeot

I can't reproduce, but I'm in the UK, so wondering if its (also?) related to this https://github.com/callemall/material-ui/issues/7070 ? I know we have other open issues for similar problems. I couldn't find the one I was looking for.

DatePicker & TimePicker need an overhaul for next, but they're big hairy components, so no-one has tried to tackle them yet...

mbrookes avatar Jul 10 '17 21:07 mbrookes

An user of our platform just reported this issue with fr as locale language, In 1995 the month of october is named september. (Tested on Windows 8.1, Chrome)

Weird issue 👍

MathieuCh avatar Jul 13 '17 11:07 MathieuCh

Same for me

pt-BR locale

image

fr locale

image

en locale

image

It doesn't make any sense that days are "changing" because of locale. After all, it's the same gregorian calendar, right?

franciscocpg avatar Jul 13 '17 18:07 franciscocpg

Huh. I'm getting even odder behaviour: (If you missed the point: July, August, August, September, November)

NonameSLdev avatar Jul 23 '17 08:07 NonameSLdev

Closing for #4787

oliviertassinari avatar Aug 22 '17 22:08 oliviertassinari