{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/5567","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/5567/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/5567/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/5567/events","html_url":"https://github.com/cakephp/cakephp/issues/5567","id":53340337,"number":5567,"title":"Problem with date format.","user":{"login":"caBBAlainB","id":9322571,"avatar_url":"https://avatars.githubusercontent.com/u/9322571?v=3","gravatar_id":"","url":"https://api.github.com/users/caBBAlainB","html_url":"https://github.com/caBBAlainB","followers_url":"https://api.github.com/users/caBBAlainB/followers","following_url":"https://api.github.com/users/caBBAlainB/following{/other_user}","gists_url":"https://api.github.com/users/caBBAlainB/gists{/gist_id}","starred_url":"https://api.github.com/users/caBBAlainB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caBBAlainB/subscriptions","organizations_url":"https://api.github.com/users/caBBAlainB/orgs","repos_url":"https://api.github.com/users/caBBAlainB/repos","events_url":"https://api.github.com/users/caBBAlainB/events{/privacy}","received_events_url":"https://api.github.com/users/caBBAlainB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/7","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/7/labels","id":453043,"number":7,"title":"3.0.0","description":"New major release that breaks compatibility with 2.x\r\n\r\n- PHP5.4.19+\r\n- New ORM & behaviors.\r\n- Improved Routing\r\n- PSR-0 and composer support.\r\n- Simpler configuration and bootstrapping.\r\n- Improved configuration handling.\r\n- Improved bake.\r\n\r\nSee [the roadmap](http://github.com/cakephp/cakephp/wiki/3.0-roadmap) for more details.","creator":{"login":"lh-import","id":5175817,"avatar_url":"https://avatars.githubusercontent.com/u/5175817?v=3","gravatar_id":"","url":"https://api.github.com/users/lh-import","html_url":"https://github.com/lh-import","followers_url":"https://api.github.com/users/lh-import/followers","following_url":"https://api.github.com/users/lh-import/following{/other_user}","gists_url":"https://api.github.com/users/lh-import/gists{/gist_id}","starred_url":"https://api.github.com/users/lh-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lh-import/subscriptions","organizations_url":"https://api.github.com/users/lh-import/orgs","repos_url":"https://api.github.com/users/lh-import/repos","events_url":"https://api.github.com/users/lh-import/events{/privacy}","received_events_url":"https://api.github.com/users/lh-import/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":2080,"state":"open","created_at":"2013-10-11T20:56:23Z","updated_at":"2015-01-04T22:31:51Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-04T16:11:07Z","updated_at":"2015-01-04T22:34:01Z","closed_at":null,"body":"Hello,\r\nI have a datetime field named eventstartdate.\r\nI edit it in a form like follows:\r\n\r\n```\r\n\t<div class=\"form-group\">\r\n\t\t<?= $this->Form->input('eventstartdate', ['label' => __(\"Date de début d'évènement :\"), 'type' => 'text', 'class' => 'form-control', 'placeholder' => __(\"Cliquez pour faire apparaître le calendrier\")]); ?>\r\n\t</div>\r\n```\r\n\r\nSo when the form is displayed, the date (with a french locale) is displayed in the format dd/MM/yyyy HH:mm:\r\n![sitemessages](https://cloud.githubusercontent.com/assets/9322571/5606515/09e9e9f2-9433-11e4-8853-4a8f91a6f287.png)\r\n\r\nBut when I submit the form, I get a validation error, certainly caused by the format because if I enter the date with the format yyyy/mm/dd HH:mm, I don't get any error.\r\n\r\nSo to resume it seems that the dates are curently correctly converted in read but not in write.\r\n\r\nAlain.\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/68652636","html_url":"https://github.com/cakephp/cakephp/issues/5567#issuecomment-68652636","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/5567","id":68652636,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T22:34:01Z","updated_at":"2015-01-04T22:34:01Z","body":"When you are validating the data are you setting the format?"}}