UIDatePicker strange behaviour with Islamic calendar
<p><strong>Note: Bug reported to Apple</strong></p>

<p><strong>Radar number: 29265429 (<a href="http://openradar.appspot.com/radar?id=4993348054024192" rel="noreferrer">Link</a>)</strong></p>

<p>I am using a UIDatePicker. When I give Gregorian calendar it works fine. The days starts from 1 to 31</p>

<p>However, when I give it Islamic <code>islamicUmmAlQura</code> it gives me a strange behaviour. The days starts from 1 to 30 but there is a '2' above 1 and below 30 such that days are as follows 2,1,2,3,4 ... 30</p>

<p>I have created a new empty iOS project and placed the following code into the <code>viewDidLoad</code> method:</p>

<pre><code>let picker = UIDatePicker(frame: CGRect(x: 0, y: 30, width: 0, height: 0))

picker.datePickerMode = .date
picker.date = Date()
picker.calendar = Calendar(identifier: .islamicUmmAlQura)
picker.autoresizingMask = UIViewAutoresizing.flexibleRightMargin
picker.frame.size.width = 300
view.addSubview(picker)
</code></pre>

<p>Screenshot:</p>

<p><a href="https://i.stack.imgur.com/JYMae.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JYMae.png" alt="enter image description here"></a></p>