{"action":"created","issue":{"url":"https://api.github.com/repos/sharksync/sharkorm/issues/25","repository_url":"https://api.github.com/repos/sharksync/sharkorm","labels_url":"https://api.github.com/repos/sharksync/sharkorm/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/sharksync/sharkorm/issues/25/comments","events_url":"https://api.github.com/repos/sharksync/sharkorm/issues/25/events","html_url":"https://github.com/sharksync/sharkorm/issues/25","id":170098543,"number":25,"title":"NSDate property can not be saved in transaction","user":{"login":"lbwxly","id":8695388,"avatar_url":"https://avatars.githubusercontent.com/u/8695388?v=3","gravatar_id":"","url":"https://api.github.com/users/lbwxly","html_url":"https://github.com/lbwxly","followers_url":"https://api.github.com/users/lbwxly/followers","following_url":"https://api.github.com/users/lbwxly/following{/other_user}","gists_url":"https://api.github.com/users/lbwxly/gists{/gist_id}","starred_url":"https://api.github.com/users/lbwxly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbwxly/subscriptions","organizations_url":"https://api.github.com/users/lbwxly/orgs","repos_url":"https://api.github.com/users/lbwxly/repos","events_url":"https://api.github.com/users/lbwxly/events{/privacy}","received_events_url":"https://api.github.com/users/lbwxly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-09T07:21:56Z","updated_at":"2016-08-16T09:50:17Z","closed_at":"2016-08-10T15:45:01Z","body":"----model defination\r\npublic class Company : SRKStringObject\r\n{\r\n    dynamic var name:String?;\r\n    dynamic var address:Address?;\r\n    \r\n    dynamic var foundDate:NSDate?\r\n    \r\n    public dynamic var displayName : String? {\r\n        return name! + \" \" + (address?.city)!;\r\n    }\r\n}\r\n\r\npublic class Address:SRKStringObject\r\n{\r\n    dynamic var city:String?\r\n}\r\n---data storage call\r\nSRKTransaction.transaction({ \r\n            let address = Address();\r\n            address.city = \"Shanghai\";\r\n            let company1 = Company();\r\n            company1.name = \"PKI\";\r\n            company1.address = address;\r\n            company1.foundDate = NSDate();\r\n            company1.commit();\r\n            }, withRollback: nil);\r\n\r\nthe result is the found date is not saved into database."},"comment":{"url":"https://api.github.com/repos/sharksync/sharkorm/issues/comments/240057114","html_url":"https://github.com/sharksync/sharkorm/issues/25#issuecomment-240057114","issue_url":"https://api.github.com/repos/sharksync/sharkorm/issues/25","id":240057114,"user":{"login":"editfmah","id":3480030,"avatar_url":"https://avatars.githubusercontent.com/u/3480030?v=3","gravatar_id":"","url":"https://api.github.com/users/editfmah","html_url":"https://github.com/editfmah","followers_url":"https://api.github.com/users/editfmah/followers","following_url":"https://api.github.com/users/editfmah/following{/other_user}","gists_url":"https://api.github.com/users/editfmah/gists{/gist_id}","starred_url":"https://api.github.com/users/editfmah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/editfmah/subscriptions","organizations_url":"https://api.github.com/users/editfmah/orgs","repos_url":"https://api.github.com/users/editfmah/repos","events_url":"https://api.github.com/users/editfmah/events{/privacy}","received_events_url":"https://api.github.com/users/editfmah/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T09:50:17Z","updated_at":"2016-08-16T09:50:17Z","body":"Hi @lbwxly ,\r\n\r\nAnother developer has just found another bug in NSDate retrieval, so there will be another fix you may wish to pull down if you are seeing weird behaviour.\r\n\r\nThanks"}}
{"actor":{"display_login":"editfmah"}}