{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6937","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6937/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6937/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6937/events","html_url":"https://github.com/cakephp/cakephp/issues/6937","id":92858512,"number":6937,"title":"For time and date only columns, only the respective time/date parts should be displayed","user":{"login":"ndm2","id":5031606,"avatar_url":"https://avatars.githubusercontent.com/u/5031606?v=3","gravatar_id":"","url":"https://api.github.com/users/ndm2","html_url":"https://github.com/ndm2","followers_url":"https://api.github.com/users/ndm2/followers","following_url":"https://api.github.com/users/ndm2/following{/other_user}","gists_url":"https://api.github.com/users/ndm2/gists{/gist_id}","starred_url":"https://api.github.com/users/ndm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndm2/subscriptions","organizations_url":"https://api.github.com/users/ndm2/orgs","repos_url":"https://api.github.com/users/ndm2/repos","events_url":"https://api.github.com/users/ndm2/events{/privacy}","received_events_url":"https://api.github.com/users/ndm2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T11:43:39Z","updated_at":"2015-07-03T11:56:02Z","closed_at":null,"body":"When dealing with time and date only columns, one would most probably want to display only the time and date parts, ie when you have `10:30` in a time column, the view should show only `10:30`, and that ideally out of the box, at least I think that would be nice. \r\n\r\nNow since all time related columns are using the `Cake\\I18n\\Time` class, the values will have a date/time part added, depending on what's missing, and thus one ends up with full date-time strings in the views.\r\n\r\nI'm not sure how this would be best solved, otherwise I would have come up with a PR. Maybe with a mixture of bake and core, by adding code to the views like\r\n\r\n\t$entity->time_only_column->i18nFormat(\r\n\t\tTime::getToTimeStringFormat()\r\n\t)\r\n\r\nand the appropriate getters/setters in the `Time` class, or maybe in the core only, by introducing additional options for the `Time` class, or even extended classes, so that it would be possible to control the default format of the string representation per instance or per type..."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/118328992","html_url":"https://github.com/cakephp/cakephp/issues/6937#issuecomment-118328992","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6937","id":118328992,"user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T11:56:01Z","updated_at":"2015-07-03T11:56:01Z","body":"Duplicate of https://github.com/cakephp/cakephp/issues/5939"}}