{"action":"opened","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/8269","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/8269/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/8269/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/8269/events","html_url":"https://github.com/cakephp/cakephp/issues/8269","id":133930850,"number":8269,"title":"CakePHP 3.1.10: ORM return different datetime in dependense from debug","user":{"login":"Sensetivity","id":4289543,"avatar_url":"https://avatars.githubusercontent.com/u/4289543?v=3","gravatar_id":"","url":"https://api.github.com/users/Sensetivity","html_url":"https://github.com/Sensetivity","followers_url":"https://api.github.com/users/Sensetivity/followers","following_url":"https://api.github.com/users/Sensetivity/following{/other_user}","gists_url":"https://api.github.com/users/Sensetivity/gists{/gist_id}","starred_url":"https://api.github.com/users/Sensetivity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sensetivity/subscriptions","organizations_url":"https://api.github.com/users/Sensetivity/orgs","repos_url":"https://api.github.com/users/Sensetivity/repos","events_url":"https://api.github.com/users/Sensetivity/events{/privacy}","received_events_url":"https://api.github.com/users/Sensetivity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T09:41:54Z","updated_at":"2016-02-16T09:41:54Z","closed_at":null,"body":"Hi all.\r\nI find interestion thing. When I disable debug ORM return DATETIME field as string. When debug is enable it return DateTime object.\r\n\r\nOther words, when you make site when debug enable and use some like this:\r\n$user->created->format('H:m:s'); \r\nWhen you set debug to disable it make a fatal error \"use property to non-object\""}}