{"action":"closed","issue":{"url":"https://api.github.com/repos/spryker/support/issues/186","repository_url":"https://api.github.com/repos/spryker/support","labels_url":"https://api.github.com/repos/spryker/support/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/spryker/support/issues/186/comments","events_url":"https://api.github.com/repos/spryker/support/issues/186/events","html_url":"https://github.com/spryker/support/issues/186","id":304462016,"number":186,"title":"Date fields have the format Y-m-d H:i:s.u instead of Y-m-d","user":{"login":"mruoss","id":695307,"avatar_url":"https://avatars2.githubusercontent.com/u/695307?v=4","gravatar_id":"","url":"https://api.github.com/users/mruoss","html_url":"https://github.com/mruoss","followers_url":"https://api.github.com/users/mruoss/followers","following_url":"https://api.github.com/users/mruoss/following{/other_user}","gists_url":"https://api.github.com/users/mruoss/gists{/gist_id}","starred_url":"https://api.github.com/users/mruoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruoss/subscriptions","organizations_url":"https://api.github.com/users/mruoss/orgs","repos_url":"https://api.github.com/users/mruoss/repos","events_url":"https://api.github.com/users/mruoss/events{/privacy}","received_events_url":"https://api.github.com/users/mruoss/received_events","type":"User","site_admin":false},"labels":[{"id":306714128,"url":"https://api.github.com/repos/spryker/support/labels/Bug","name":"Bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-12T17:11:46Z","updated_at":"2018-04-30T13:29:26Z","closed_at":"2018-04-30T13:29:26Z","author_association":"NONE","body":"This is a\r\n\r\n* [x] bug\r\n* [ ] enhancement\r\n\r\nHi there\r\n\r\nIn this [commit](https://github.com/spryker/propel-orm/commit/02529b70bcfc925fe43c25bf557ee4095b15a7c7) you overwrite propel's ObjectBuilder. Now all fields, no matter whether they are of type DATE, TIMESTAMP or TIME are formatted as 'Y-m-d H:i:s.u' when calling `->toArray()` on the object.\r\nThis is especially bad if you use it like this `$customerTransfer->fromArray($customerEntity->toArray());`. `$customerTransfer->getDateOfBirth()` now returns `2018-01-01 00:00:00.000000` instead of `2018-01-01`.\r\n\r\nThis is a quite crucial bug to our project as we use this field with external providers. What was the reason for changing this? And would it make sense to use the function `ObjectBuilder::getTemporalFormatter(Column $column)` to get the correct format? (just a guess).\r\n\r\nThanks,\r\nMichael"}}
{"actor":{"display_login":"dereuromark"}}