Hebrew UIDatePicker Shouldn't Show Adar II in non-leap years

Originator:moshefromsinai
Number:rdar://30723278 Date Originated:February 26, 2017
Status:Open Resolved:
Product:iOS Product Version:10.3 Beta 3
Classification:Serious Reproducible:Always
 
Area: UIKit

Summary: The UIDatePicker used to show "Adar" for non-leap years for the NSHebrewCalendar. In iOS 10.3 beta it shows Adar I and Adar II for all years.

Steps to Reproduce: 1. Set up Xcode project with a UIDatePicker
2. Set the calendar to Hebrew
3. Run

Expected Results: The date picker should hide Adar I when the date of the date picker represents a non-leap year on the date picker. 

Actual Results: The date picker shows both Adars, and Adar I is un-selectable. 

This is confusing to me as an American Jew who uses the Gregorian and Hebrew calendars. I don't usually think of the non-leap Adar as "Adar II" even though this is semantically correct. Israelis who use the Hebrew calendar daily might intuit this better, but the previous behavior is more natural to me. 

Further, the disabled state of the Adar I row doesn't provide a great enough contrast for me to tell without attempting to select it. 

See the attached screen shot for actual usage inside of my app, with the problem demonstrated. This year, 5777 on the Hebrew calendar is not a leap year and yet the picker shows both months. 

Version: iOS 10.3 Beta 3, iPhone 6S, Verizon

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!