{ "id": "150843", "key": "TIMOB-19439", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-08-31T11:21:15.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:35.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The new [Titanium.App.iOS.SearchableItem|https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.App.iOS.SearchableItem], [Titanium.App.iOS.SearchableItemAttributeSet|https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.App.iOS.SearchableItemAttributeSet] and [Titanium.App.iOS.UserActivity|https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.App.iOS.UserActivity] API's all have one or more date-properties, all of which require:\r\n\r\n{quote}\r\nThe date will be a string in the following format: \"yyyy-MM-dd'T'HH:mm:ss.SSS'+0000'\" For example, 2015-12-25T23:30:55.978+0000\r\n{quote}\r\n\r\nSince Titanium developers work with the JS Date object all the time, we should support that (as well) just like we do in many other API's like [Titanium.App.iOS.LocalNotification|https://appcelerator.github.io/appc-docs/latest/#!/api/NotificationParams-property-date] and [Titanium.UI.Picker|https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.UI.Picker-property-maxDate]", "attachment": [], "flagged": false, "summary": "Date properties of Ti.App.iOS.Searchable* and UserActivity should accept JS Date object", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.0.0.v20150829212027", "comment": { "comments": [ { "id": "362173", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Also, [~bhatfield] the current API reference for the value contains a typo. The {{'}}) between {{SSS}} and {{+0000}} should not be there if you see the example value.\r\n\r\nAnd the given format is not usable in JavaScript, in particular the momentjs library that ships with Alloy. To get the correct format there you need:\r\n\r\n{code}\r\nmoment().format('YYYY-MM-DD[T]HH:mm:ss.SSSZZ');\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-09-03T14:16:36.000+0000", "updated": "2015-09-03T14:16:47.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }