I've found some very strange behaviour in UIDatePicker
: in my iPhone's settings I've select 24-h time but UIDatePicker
still shows 12-h time.
The local of UIDatePicker
is default
(based on user settings).
How to reproduce:
Preconditions:
- iPhone language should be English
- 24 hours format should be set
- Timezone should be set as automatic
- iPhone region: Ukraine
Steps:
- Change iPhone language to Ukrainian(haven't tested with other languages)
- Change timezone to Manual
- Switch 24-h time format to 12-h
- Switch 12-h time format to 24-h
As a result, we get the following: screenshot
Question: Is it the iOS bug or just my mistake?
Thank you for any suggestions.