StansAssets / com.stansassets.ultimate-mobile

Ultimate Mobile Plugin Wiki
https://api.stansassets.com/ultimate-mobile/
11 stars 2 forks source link

UM_DatePickerDialog allways shows sunday as first day of week #35

Closed andresyebenes closed 3 years ago

andresyebenes commented 3 years ago

iOS users are reporting that the date picker (from UM_DatePickerDialog) is always showing sunday as the first day of the week (usually its monday the first day in most regions).

I think maybe the plugin is not setting correctly the locale in the date picker (from Apple side API): https://developer.apple.com/documentation/uikit/uidatepicker/1615995-locale https://developer.apple.com/documentation/uikit/uidatepicker

The correct way should be to use the current user locale settings. Also, it would be nice to provide a way to manually set the locale with UM_DatePickerDialog.

stan-osipov commented 3 years ago

@andresyebenes Agreed and makes sence. We will work on it