Use of NSDateFormatterShortStyle in Australian locale results in a date like "7/08/2015".

Originator:efreitos
Number:rdar://22193264 Date Originated:8/7/2015
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 9.0 [13A4305g]
Classification: Reproducible:Always
 
Summary:
The use of the NSDateFormatterShortStyle in a date formatter with the locale set to @"en-AU", Australia English, results in a date format that for August 7th 2015 would be "7/08/2015".  Why is there a leading zero on the month?

Steps to Reproduce:
1. Set a date that has a single digit day, and a single digit month.
2. Setup a formatter to use the NSDateFormatterShortStyle.
3. Set the locale for the formatter to @"en-AU".
4. Convert the date to a string using stringFromDate:.

Expected Results:
I would expect at the least to see "7/8/2015", or possibly even "7/8/15". The US version (en-US) shows "8/7/15".

Actual Results:
The result is "7/08/2015".

Version:
iOS 9.0 [13A4305g]

Notes:
This date format appears to be incorrect according to my Australian teammates.
A project built specifically to showcase this issue is attached.  Built with Xcode 7 beta 4.

Configuration:
All simulator versions in iOS9, as well as an iPhone 5 using iOS9.  Other phones are affected.

Attachments:
'DateLocaleTester.zip' was successfully uploaded.

See the test app at https://github.com/Thunor/DateLocaleTester

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!