Calendar.date(bySetting:value:of:) doesn't work
Originator: | an00na | ||
Number: | rdar://36336162 | Date Originated: | January 6 2018, 3:16 PM |
Status: | DUPLICATE OF 28388677 OPEN | Resolved: | |
Product: | iOS + SDK | Product Version: | 11.2 |
Classification: | Serious Bug | Reproducible: | Always |
Area: Foundation Summary: If I set year to a value smaller than the passed in date's year the result is nil, if bigger the date is reset to Jan 1 and time to 12 AM. I cannot make sense of it. I think it is buggy. I didn't try other usages. Code: https://mega.nz/#!ZOg21Aha!semx5pKUpa-WrJO5VDUNifGqujv2d-8OZ1QnxNAG-OI
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!