NSISO8601DateFormatter should be able to parse strings which include a decimal fraction in the seconds
Originator: | Peter.L.Stuart | ||
Number: | rdar://28425750 | Date Originated: | 22-Sep-2016 09:03 AM |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | |
Classification: | Reproducible: | Always |
Summary: It is very common for ISO8601-formatted dates to include a decimal fraction in the seconds, even if it is 0. NSISO8601DateFormatter can't handle this. Steps to Reproduce: ISO8601DateFormatter().date(from: "2015-04-24T14:20:01.05-0400") Expected Results: A date object. Actual Results: Nil. Version: iOS 10.0.1 Notes: Configuration: iPhone 6S Attachments:
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!