NSDateFormatter stringFromDate: does not obey user's 12/24 pref
Originator: | ben.challenor | ||
Number: | rdar://9774877 | Date Originated: | 2011/07/14 |
Status: | Open | Resolved: | |
Product: | iPhone SDK | Product Version: | 4.3 |
Classification: | UI/Usability | Reproducible: | Always |
Summary: In the specific case detailed below NSDateFormatter stringFromDate: does not emit an AM/PM symbol. http://stackoverflow.com/questions/6169074/nsdateformatter-does-not-respect-12-24-hour-am-pm-system-setting-in-some-circ Steps to Reproduce: - 24 hour locale (e.g. UK) - 12 hour user preference - dateFormatter.dateStyle = NSDateFormatterShortStyle (important, if date is NoStyle then the bug does not occur) - dateFormatter.timeStyle = NSDateFormatterShortStyle - dateFormatter.doesRelativeDateFormatting = YES Expected Results: stringFromDate: emits an AM/PM symbol. Actual Results: e.g. 18/07/2011 18:00
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!