{"action":"opened","issue":{"url":"https://api.github.com/repos/icanzilb/JSONModel/issues/448","repository_url":"https://api.github.com/repos/icanzilb/JSONModel","labels_url":"https://api.github.com/repos/icanzilb/JSONModel/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/icanzilb/JSONModel/issues/448/comments","events_url":"https://api.github.com/repos/icanzilb/JSONModel/issues/448/events","html_url":"https://github.com/icanzilb/JSONModel/issues/448","id":135108327,"number":448,"title":"NSDate or JSONValueTransformer not working for iOS 6.","user":{"login":"neobie","id":4213973,"avatar_url":"https://avatars.githubusercontent.com/u/4213973?v=3","gravatar_id":"","url":"https://api.github.com/users/neobie","html_url":"https://github.com/neobie","followers_url":"https://api.github.com/users/neobie/followers","following_url":"https://api.github.com/users/neobie/following{/other_user}","gists_url":"https://api.github.com/users/neobie/gists{/gist_id}","starred_url":"https://api.github.com/users/neobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neobie/subscriptions","organizations_url":"https://api.github.com/users/neobie/orgs","repos_url":"https://api.github.com/users/neobie/repos","events_url":"https://api.github.com/users/neobie/events{/privacy}","received_events_url":"https://api.github.com/users/neobie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-20T18:28:54Z","updated_at":"2016-02-20T18:28:54Z","closed_at":null,"body":"I am using JSONValueTransformer to convert my API Date to NSDate.\r\n\r\n@implementation JSONValueTransformer (Date)\r\n\r\nNSString *APIDateFormat = @\"yyyy-MM-dd HH:mm:ss\";\r\n\r\n- (NSDate *)NSDateFromNSString:(NSString*)string {\r\n    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];\r\n    [formatter setDateFormat:APIDateFormat];\r\n    return [formatter dateFromString:string];\r\n}\r\n\r\n- (NSString *)JSONObjectFromNSDate:(NSDate *)date {\r\n    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];\r\n    [formatter setDateFormat:APIDateFormat];\r\n    return [formatter stringFromDate:date];\r\n}\r\n\r\n@end\r\n\r\nIt is working fine for iOS >= 8.0, but not working on iOS 6 on my iPod. in iOS 6, the date is null as print out by NSLog().\r\nI can't test on iOS 7 yet as I do not have the device."}}