{"action":"created","issue":{"url":"https://api.github.com/repos/duxet/laravel-rethinkdb/issues/20","labels_url":"https://api.github.com/repos/duxet/laravel-rethinkdb/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/duxet/laravel-rethinkdb/issues/20/comments","events_url":"https://api.github.com/repos/duxet/laravel-rethinkdb/issues/20/events","html_url":"https://github.com/duxet/laravel-rethinkdb/pull/20","id":123013131,"number":20,"title":"Updating model and test to fix laravel timestamps","user":{"login":"karllhughes","id":1103622,"avatar_url":"https://avatars.githubusercontent.com/u/1103622?v=3","gravatar_id":"","url":"https://api.github.com/users/karllhughes","html_url":"https://github.com/karllhughes","followers_url":"https://api.github.com/users/karllhughes/followers","following_url":"https://api.github.com/users/karllhughes/following{/other_user}","gists_url":"https://api.github.com/users/karllhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/karllhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karllhughes/subscriptions","organizations_url":"https://api.github.com/users/karllhughes/orgs","repos_url":"https://api.github.com/users/karllhughes/repos","events_url":"https://api.github.com/users/karllhughes/events{/privacy}","received_events_url":"https://api.github.com/users/karllhughes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-18T19:39:26Z","updated_at":"2015-12-19T13:42:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/duxet/laravel-rethinkdb/pulls/20","html_url":"https://github.com/duxet/laravel-rethinkdb/pull/20","diff_url":"https://github.com/duxet/laravel-rethinkdb/pull/20.diff","patch_url":"https://github.com/duxet/laravel-rethinkdb/pull/20.patch"},"body":"As mentioned in #19 I had an issue with timestamps being stored as strings instead of Reql date objects.\r\n\r\nUpon further inspection, I noticed that the PHP driver for Rethink requires a DateTime object to be passed in for timestamps to be saved properly, but because of the way Eloquent normally handles these (it converts Carbon objects to strings before saving), the PHP driver was saving timestamps as strings.\r\n\r\nThis pull request addresses the issue and test verifies it. Thanks!"},"comment":{"url":"https://api.github.com/repos/duxet/laravel-rethinkdb/issues/comments/165985011","html_url":"https://github.com/duxet/laravel-rethinkdb/pull/20#issuecomment-165985011","issue_url":"https://api.github.com/repos/duxet/laravel-rethinkdb/issues/20","id":165985011,"user":{"login":"karllhughes","id":1103622,"avatar_url":"https://avatars.githubusercontent.com/u/1103622?v=3","gravatar_id":"","url":"https://api.github.com/users/karllhughes","html_url":"https://github.com/karllhughes","followers_url":"https://api.github.com/users/karllhughes/followers","following_url":"https://api.github.com/users/karllhughes/following{/other_user}","gists_url":"https://api.github.com/users/karllhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/karllhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karllhughes/subscriptions","organizations_url":"https://api.github.com/users/karllhughes/orgs","repos_url":"https://api.github.com/users/karllhughes/repos","events_url":"https://api.github.com/users/karllhughes/events{/privacy}","received_events_url":"https://api.github.com/users/karllhughes/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T13:42:28Z","updated_at":"2015-12-19T13:42:28Z","body":"@linuxjuggler sure thing. I saw that they were fixed in [your PR](https://github.com/linuxjuggler/laravel-rethinkdb/commit/58c71a360962f5333e0be09e8c1eddb219a77cf8) so I figured I wouldn't, but I copied your code over :smile: "}}