You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a pretty annoying problem with the localized DatePicker in French. Between the years 1944 and 1981 included, there are twice the month of March and there is no month of February.
So for example when trying to choose August 15, 1970 we get September 15, 1970. The problem is not present on the default version in English and I just used the same code as the one provided on the French localized example on the website :
import DatePicker from 'material-ui/DatePicker';
import areIntlLocalesSupported from 'intl-locales-supported';
let DateTimeFormat;
if (areIntlLocalesSupported(['fr', 'fa-IR'])) {
DateTimeFormat = global.Intl.DateTimeFormat;
} else {
const IntlPolyfill = require('intl');
DateTimeFormat = IntlPolyfill.DateTimeFormat;
require('intl/locale-data/jsonp/fr');
require('intl/locale-data/jsonp/fa-IR');
}
<DatePicker
hintText="fr locale"
DateTimeFormat={DateTimeFormat}
okLabel="OK"
cancelLabel="Annuler"
locale="fr"
/>
@mbrookes thank you for quick answer! I might take a look at it. Just so I understand it seems that problem is only with localized datepickers. Also form our experience we weren't able to reproduce this on Linux(Ubuntu 16.04) and latest OSx. This has occurred only on Windows.
Hello,
I'm having a pretty annoying problem with the localized DatePicker in French. Between the years 1944 and 1981 included, there are twice the month of March and there is no month of February.
So for example when trying to choose August 15, 1970 we get September 15, 1970. The problem is not present on the default version in English and I just used the same code as the one provided on the French localized example on the website :
I'm using firefox v55.0.1 [email protected] and [email protected] but the example on the website encounters the same problem.
The text was updated successfully, but these errors were encountered: