{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/5613","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/5613/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/5613/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/5613/events","html_url":"https://github.com/cakephp/cakephp/issues/5613","id":53819795,"number":5613,"title":"cakephp 3 \"date\" pull-down panel, date field defined as DEFAULT NULL","user":{"login":"renardrouge","id":10366395,"avatar_url":"https://avatars.githubusercontent.com/u/10366395?v=3","gravatar_id":"","url":"https://api.github.com/users/renardrouge","html_url":"https://github.com/renardrouge","followers_url":"https://api.github.com/users/renardrouge/followers","following_url":"https://api.github.com/users/renardrouge/following{/other_user}","gists_url":"https://api.github.com/users/renardrouge/gists{/gist_id}","starred_url":"https://api.github.com/users/renardrouge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renardrouge/subscriptions","organizations_url":"https://api.github.com/users/renardrouge/orgs","repos_url":"https://api.github.com/users/renardrouge/repos","events_url":"https://api.github.com/users/renardrouge/events{/privacy}","received_events_url":"https://api.github.com/users/renardrouge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/On+hold","name":"On hold","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"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},"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":13,"closed_issues":2176,"state":"open","created_at":"2013-10-11T20:56:23Z","updated_at":"2015-01-21T02:33:22Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-01-09T00:29:14Z","updated_at":"2015-01-21T02:33:22Z","closed_at":"2015-01-21T02:33:22Z","body":"I have a \"cake bake\" generated form with a field defined in the database table as \"date DEFAULT NULL\".  \r\nThe date field is not a \"required\" field.  The resulting form is produced with pull-down tabs, sitting on the current UTC date.  \r\nWhen I submit the form, the result seems to be the current UTC date and time . (for example, 1/9/15, 12:00 AM)  \r\nI would like this field to remain NULL if not \"required\".  \r\nHow can I keep this field NULL when not selected, and when selected, is it possible to store the result in \"date\" format rather than \"datetime\" format ?"}}