akveo / akveo/react-native-ui-kitten
DatePicker short day name in wrong order
- Langage dominant
- TypeScript
- Étoiles
- 10.7k
- Forks
- 962
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## 🐛 Bug Report
The DatePicke, RangeDatePicker and Calendar have a wrong short day name order when changing to a different locale. In my case Dutch starts its week on a Monday. The calendar week rows dates do start with the date of a Monday but the top row with the short day names does not start with a Monday (but a Sunday). I use momentjs. When I print `moment().format('ddd DD')` I do see the right short day name.
So to be clear today it's Wednesday 30th of March. When I log this with moment to see the day name I do see Wednesday (in Dutch short: Wo), but in the calendar the day name above the date 30 shows Tuesday (in Dutch short: Di).
## To Reproduce
Steps to reproduce the behavior:
```
import {MomentDateService} from '@ui-kitten/moment';
import {RangeDatepicker} from '@ui-kitten/components';
import moment from 'moment';
import momentLang from 'moment/locale/nl';
moment.updateLocale('nl', momentLang);
updateRange(nextRange)}
/>
```

## Expected behavior
The top row with short day names starts with the Monday. So in my (Dutch) example it should say `Ma` instead of `Zo`.
## UI Kitten and Eva version
| Package | Version |
| ----------- | ----------- |
| @eva-design/eva |2.1.0|
| @ui-kitten/components |5.1.1|
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.