Date formatters not using the specified calendar when locale is set to autoupdating
| Originator: | ameir.alzoubi | ||
| Number: | rdar://23175065 | Date Originated: | 19-Oct-2015 07:16 PM |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | 10.11 (15A284) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: Date formatters using NSLocale.autoupdatingCurrentLocale() are always displaying dates with the Gregorian calendar, even when they have a non-Gregorian calendar set, such as the Islamic calendar or the Hebrew calendar. Steps to Reproduce: 1. Create a date formatter 2. Set a non-gregorian calendar (such as the Islamic calendar or the Hebrew calendar) 3. Set the locale to the autoupdatingCurrentLocale 4. Create a string with a formatted date Expected Results: Formatted string displays a month and year of the specified calendar Actual Results: Formatted string uses the gregorian month and year
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!
Gist with example playground https://gist.github.com/anonymous/2856840d0856a4b6751c