{"action":"created","issue":{"url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/78","labels_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/78/comments","events_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/78/events","html_url":"https://github.com/czechboy0/XcodeServerSDK/issues/78","id":96744075,"number":78,"title":"Date from array","user":{"login":"cojoj","id":4522407,"avatar_url":"https://avatars.githubusercontent.com/u/4522407?v=3","gravatar_id":"","url":"https://api.github.com/users/cojoj","html_url":"https://github.com/cojoj","followers_url":"https://api.github.com/users/cojoj/followers","following_url":"https://api.github.com/users/cojoj/following{/other_user}","gists_url":"https://api.github.com/users/cojoj/gists{/gist_id}","starred_url":"https://api.github.com/users/cojoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cojoj/subscriptions","organizations_url":"https://api.github.com/users/cojoj/orgs","repos_url":"https://api.github.com/users/cojoj/repos","events_url":"https://api.github.com/users/cojoj/events{/privacy}","received_events_url":"https://api.github.com/users/cojoj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/labels/discussion","name":"discussion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-23T06:34:19Z","updated_at":"2015-07-24T14:23:29Z","closed_at":null,"body":"@czechboy0 I can't find this anywhere in code so I'll simply ask.\r\nIn some responses we're getting **date** but in form of array of components. Didiyou write a method or extension for handling this?\r\nI only found `dateForKey()` and `optionalDateForKey()` but they work with `String`s.\r\n\r\nWe need something to get this array by calling `arrayForKey()` and return `NSDateComponents` or date formatted `String`.\r\n\r\nGot any hints how you want it to be implemented? Here are my ideas:\r\n- add new method to JSON which will return `NSDate`\r\n- add `extension` to `NSArray` which will create `NSDate` or `NSDateComponents` or `String`\r\n\r\nIn any case we'll have to manually take fields from`Array` and put them in `NSDateComponents` like:\r\n```swift\r\nlet components = NSDateComponents()\r\n\r\ncomponents.year = array[0]\r\ncomponents.month = array[1]\r\ncomponents.day = array[2]\r\ncomponents.hour = array[3]\r\ncomponents.minute = array[4]\r\ncomponents.second = array[5]\r\n```\r\nWhich kind of sucks...\r\nWhat's more, `Array` of components we get from XCS has 7 fields and I wonder what is the 7th one... It doesn't look like a timezone... Nanoseconds?"},"comment":{"url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/comments/124539964","html_url":"https://github.com/czechboy0/XcodeServerSDK/issues/78#issuecomment-124539964","issue_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/78","id":124539964,"user":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T14:23:29Z","updated_at":"2015-07-24T14:23:29Z","body":"Fixed in https://github.com/buildasaurs/BuildaUtils/pull/1"}}