Project: titanium
Issue TIMOB-18173: iOS: adding date property for Ti.Contacts.createPerson causes error 
This is not a regression as it is reproducible with Titanium sdk 3.4.1 When a new contact is added to the device, adding the date property along with it, following the format in the docs gives error. When the following is done: {code} var person = Ti.Contacts.createPerson({ firstName: 'Aaron', lastName: 'Smith', date: { anniversary: ['2002-11-11T11:23:30.000+0000'], other: ['2011-04-02T12:00:00.000+0000'] } }); {code} it cause the error mentioned in step 1 of the actual results, however adding the date property separately as follows: {code} person.date = { anniversary: ['2022-11-11T11:23:30.000+0000'], other: ['2003-04-02T12:00:00.000+0000'] }; {code} does not cause any error, however the contact does not get added to the device contacts. The birthday field works fine though it also follows the same format as the date. Steps to reproduce: 1. Run the attached app.js 2. Open device contacts and check for Ade Crude Actual results: 1. The following error is shown: {code} [ERROR] : Script Error { [ERROR] : column = 42; [ERROR] : line = 39; [ERROR] : message = "-[__NSCFConstantString countByEnumeratingWithState:objects:count:] unrecognized selector sent to instance 0x5d7014"; [ERROR] : sourceURL = "file:///private/var/mobile/Containers/Bundle/Application/1CCC7A89-6FEA-4909-8277-AA526270ABE2/timob9589.app/app.js"; [ERROR] : stack = "[native code]\ncreateUpdateContact@file:///private/var/mobile/Containers/Bundle/Application/1CCC7A89-6FEA-4909-8277-AA526270ABE2/timob9589.app/app.js:39:42\nglobal code@file:///private/var/mobile/Containers/Bundle/Application/1CCC7A89-6FEA-4909-8277-AA526270ABE2/timob9589.app/app.js:14:21"; [ERROR] : } {code} 2. No new contacts added Expected results: 1. Blank white screen appears 2. 'Ade Crude' is added to the contacts along with the anniversary dates and other details mentioned in app.js
Story points: 3