iOS 10: NSDate hour description is wrong when Region is Japan and 24-Hour Time is off
Originator: | son | ||
Number: | rdar://29237701 | Date Originated: | November 13, 2016 |
Status: | Open | Resolved: | No |
Product: | iOS | Product Version: | 10.1.1 |
Classification: | bug | Reproducible: | yes |
NSDate hour description is wrong. It is appending the 24 hour description and 12 hour description together. In iOS 10 Settings: - Set Region to Japan in Settings > General > Language & Region > Region Formats > Region - Set 24-Hour Time Off in Settings > General > Date & Time > 24-Hour Time Connect a device to Xcode and check log Using: NSLog(@"Date is %@", [NSDate date].description); Expected Result: Date is 2016-11-13 10:28:27 AM +0000 Acutal Result: Date is 2016-11-13 1010:28:27 AM +0000
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!
+1 to this!
This bug is still occurring in iOS 11 and even iOS 12