{"action":"created","issue":{"url":"https://api.github.com/repos/meumobi/sitebuilder/issues/147","labels_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/147/comments","events_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/147/events","html_url":"https://github.com/meumobi/sitebuilder/issues/147","id":93843710,"number":147,"title":"the datetime that appears on dashboard/visitors for last_login it based on server not site config","user":{"login":"elbidone","id":9011612,"avatar_url":"https://avatars.githubusercontent.com/u/9011612?v=3","gravatar_id":"","url":"https://api.github.com/users/elbidone","html_url":"https://github.com/elbidone","followers_url":"https://api.github.com/users/elbidone/followers","following_url":"https://api.github.com/users/elbidone/following{/other_user}","gists_url":"https://api.github.com/users/elbidone/gists{/gist_id}","starred_url":"https://api.github.com/users/elbidone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbidone/subscriptions","organizations_url":"https://api.github.com/users/elbidone/orgs","repos_url":"https://api.github.com/users/elbidone/repos","events_url":"https://api.github.com/users/elbidone/events{/privacy}","received_events_url":"https://api.github.com/users/elbidone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meumobi/sitebuilder/labels/bug","name":"bug","color":"207de5"},{"url":"https://api.github.com/repos/meumobi/sitebuilder/labels/sitebuilder","name":"sitebuilder","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"t4deu","id":1649955,"avatar_url":"https://avatars.githubusercontent.com/u/1649955?v=3","gravatar_id":"","url":"https://api.github.com/users/t4deu","html_url":"https://github.com/t4deu","followers_url":"https://api.github.com/users/t4deu/followers","following_url":"https://api.github.com/users/t4deu/following{/other_user}","gists_url":"https://api.github.com/users/t4deu/gists{/gist_id}","starred_url":"https://api.github.com/users/t4deu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t4deu/subscriptions","organizations_url":"https://api.github.com/users/t4deu/orgs","repos_url":"https://api.github.com/users/t4deu/repos","events_url":"https://api.github.com/users/t4deu/events{/privacy}","received_events_url":"https://api.github.com/users/t4deu/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/meumobi/sitebuilder/milestones/5","html_url":"https://github.com/meumobi/sitebuilder/milestones/rel-2.7:%20improve%20app%20management","labels_url":"https://api.github.com/repos/meumobi/sitebuilder/milestones/5/labels","id":1139233,"number":5,"title":"rel-2.7: improve app management","description":"","creator":{"login":"elbidone","id":9011612,"avatar_url":"https://avatars.githubusercontent.com/u/9011612?v=3","gravatar_id":"","url":"https://api.github.com/users/elbidone","html_url":"https://github.com/elbidone","followers_url":"https://api.github.com/users/elbidone/followers","following_url":"https://api.github.com/users/elbidone/following{/other_user}","gists_url":"https://api.github.com/users/elbidone/gists{/gist_id}","starred_url":"https://api.github.com/users/elbidone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbidone/subscriptions","organizations_url":"https://api.github.com/users/elbidone/orgs","repos_url":"https://api.github.com/users/elbidone/repos","events_url":"https://api.github.com/users/elbidone/events{/privacy}","received_events_url":"https://api.github.com/users/elbidone/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":5,"state":"open","created_at":"2015-05-29T05:42:00Z","updated_at":"2015-07-16T05:29:03Z","due_on":"2015-07-30T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-07-08T17:13:39Z","updated_at":"2015-07-16T20:11:39Z","closed_at":null,"body":"# What occurs\r\non visitors dashboard time of last_login is wrong. Should use the site settings managed on /sites/general to define the local time"},"comment":{"url":"https://api.github.com/repos/meumobi/sitebuilder/issues/comments/122074864","html_url":"https://github.com/meumobi/sitebuilder/issues/147#issuecomment-122074864","issue_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/147","id":122074864,"user":{"login":"t4deu","id":1649955,"avatar_url":"https://avatars.githubusercontent.com/u/1649955?v=3","gravatar_id":"","url":"https://api.github.com/users/t4deu","html_url":"https://github.com/t4deu","followers_url":"https://api.github.com/users/t4deu/followers","following_url":"https://api.github.com/users/t4deu/following{/other_user}","gists_url":"https://api.github.com/users/t4deu/gists{/gist_id}","starred_url":"https://api.github.com/users/t4deu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t4deu/subscriptions","organizations_url":"https://api.github.com/users/t4deu/orgs","repos_url":"https://api.github.com/users/t4deu/repos","events_url":"https://api.github.com/users/t4deu/events{/privacy}","received_events_url":"https://api.github.com/users/t4deu/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T20:11:39Z","updated_at":"2015-07-16T20:11:39Z","body":"Update VisitorsRepository dehydrate and hydrate methods to set the correct field types:\r\n```php\r\n  protected function hydrate($data)\r\n  {\r\n   $data[last_login] = $data[last_login] ? date('Y-m-d H:i:s', $data['last_login']->sec); : null;\r\n   return new visitor($data);\r\n\t}\r\n\t\r\n  protected function dehydrate($object)                                                                                                                \r\n  {                                                                                                                                                    \r\n    return [                                                                                                                                           \r\n      'last_login' => $object->lastLogin() ? new MongoDate(strtotime($object->lastLogin()) : null,\r\n      ...\r\n    ]\r\n  }\r\n``` "}}