{"action":"created","issue":{"url":"https://api.github.com/repos/moloquent/moloquent/issues/38","repository_url":"https://api.github.com/repos/moloquent/moloquent","labels_url":"https://api.github.com/repos/moloquent/moloquent/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/moloquent/moloquent/issues/38/comments","events_url":"https://api.github.com/repos/moloquent/moloquent/issues/38/events","html_url":"https://github.com/moloquent/moloquent/issues/38","id":184720551,"number":38,"title":"[bug] with dates","user":{"login":"ctf0","id":7388088,"avatar_url":"https://avatars.githubusercontent.com/u/7388088?v=3","gravatar_id":"","url":"https://api.github.com/users/ctf0","html_url":"https://github.com/ctf0","followers_url":"https://api.github.com/users/ctf0/followers","following_url":"https://api.github.com/users/ctf0/following{/other_user}","gists_url":"https://api.github.com/users/ctf0/gists{/gist_id}","starred_url":"https://api.github.com/users/ctf0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctf0/subscriptions","organizations_url":"https://api.github.com/users/ctf0/orgs","repos_url":"https://api.github.com/users/ctf0/repos","events_url":"https://api.github.com/users/ctf0/events{/privacy}","received_events_url":"https://api.github.com/users/ctf0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moloquent/moloquent/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-23T22:30:04Z","updated_at":"2016-10-26T22:47:30Z","closed_at":"2016-10-24T11:53:37Z","body":"the fields are saved as\r\n```js\r\n  \"created_at\": new Date(\"2016-08-09T21:47:12+0200\"),\r\n  \"updated_at\": new Date(\"2016-09-30T14:36:55+0200\")\r\n```\r\n\r\ndoing something like `dd(Article::first()->created_at);` return \r\n```js\r\nCarbon {#216 ▼\r\n  +\"date\": \"2016-08-09 19:55:04.000000\"\r\n  +\"timezone_type\": 3\r\n  +\"timezone\": \"UTC\"\r\n}\r\n```\r\n\r\nsetting the attr like\r\n```php\r\npublic function getCreatedAtAttribute($value)\r\n    {\r\n        return Carbon::parse($value)->toDateTimeString();\r\n    }\r\n```\r\nreturn\r\n```\r\nDateTime::__construct(): Failed to parse time string (1470772504000) at position 12 (0): Unexpected character\r\n```\r\n\r\nusing the hack from https://github.com/jenssegers/date/issues/225 as `\"@{$value}\"` return `\"48576-12-03 21:46:40\"`"},"comment":{"url":"https://api.github.com/repos/moloquent/moloquent/issues/comments/256499591","html_url":"https://github.com/moloquent/moloquent/issues/38#issuecomment-256499591","issue_url":"https://api.github.com/repos/moloquent/moloquent/issues/38","id":256499591,"user":{"login":"iceheat","id":8448442,"avatar_url":"https://avatars.githubusercontent.com/u/8448442?v=3","gravatar_id":"","url":"https://api.github.com/users/iceheat","html_url":"https://github.com/iceheat","followers_url":"https://api.github.com/users/iceheat/followers","following_url":"https://api.github.com/users/iceheat/following{/other_user}","gists_url":"https://api.github.com/users/iceheat/gists{/gist_id}","starred_url":"https://api.github.com/users/iceheat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iceheat/subscriptions","organizations_url":"https://api.github.com/users/iceheat/orgs","repos_url":"https://api.github.com/users/iceheat/repos","events_url":"https://api.github.com/users/iceheat/events{/privacy}","received_events_url":"https://api.github.com/users/iceheat/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T22:47:30Z","updated_at":"2016-10-26T22:47:30Z","body":"Did you change your models to use moloquent first?\r\n"}}
{"actor":{"display_login":"iceheat"}}