{"action":"created","issue":{"url":"https://api.github.com/repos/pNre/ExSwift/issues/112","labels_url":"https://api.github.com/repos/pNre/ExSwift/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/pNre/ExSwift/issues/112/comments","events_url":"https://api.github.com/repos/pNre/ExSwift/issues/112/events","html_url":"https://github.com/pNre/ExSwift/issues/112","id":67930865,"number":112,"title":"NSDate extension can't support iOS7","user":{"login":"ShineWu","id":9369562,"avatar_url":"https://avatars.githubusercontent.com/u/9369562?v=3","gravatar_id":"","url":"https://api.github.com/users/ShineWu","html_url":"https://github.com/ShineWu","followers_url":"https://api.github.com/users/ShineWu/followers","following_url":"https://api.github.com/users/ShineWu/following{/other_user}","gists_url":"https://api.github.com/users/ShineWu/gists{/gist_id}","starred_url":"https://api.github.com/users/ShineWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShineWu/subscriptions","organizations_url":"https://api.github.com/users/ShineWu/orgs","repos_url":"https://api.github.com/users/ShineWu/repos","events_url":"https://api.github.com/users/ShineWu/events{/privacy}","received_events_url":"https://api.github.com/users/ShineWu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-12T16:06:50Z","updated_at":"2015-10-26T19:30:48Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/pNre/ExSwift/issues/comments/151258406","html_url":"https://github.com/pNre/ExSwift/issues/112#issuecomment-151258406","issue_url":"https://api.github.com/repos/pNre/ExSwift/issues/112","id":151258406,"user":{"login":"smaspe","id":4571256,"avatar_url":"https://avatars.githubusercontent.com/u/4571256?v=3","gravatar_id":"","url":"https://api.github.com/users/smaspe","html_url":"https://github.com/smaspe","followers_url":"https://api.github.com/users/smaspe/followers","following_url":"https://api.github.com/users/smaspe/following{/other_user}","gists_url":"https://api.github.com/users/smaspe/gists{/gist_id}","starred_url":"https://api.github.com/users/smaspe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smaspe/subscriptions","organizations_url":"https://api.github.com/users/smaspe/orgs","repos_url":"https://api.github.com/users/smaspe/repos","events_url":"https://api.github.com/users/smaspe/events{/privacy}","received_events_url":"https://api.github.com/users/smaspe/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T19:30:48Z","updated_at":"2015-10-26T19:30:48Z","body":"Nope. The issue is that\r\n\r\n    component.setValue(minutes, forComponent: .CalendarUnitMinute)\r\n\r\ndoes not exist in iOS 7, it was added in iOS 8. cf https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDateComponents_Class/index.html#//apple_ref/occ/instm/NSDateComponents/setValue:forComponent:\r\n\r\nThe solution is to access the properties directly:\r\n\r\n    component.minute = minutes\r\n"}}