{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/28699","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/28699/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/28699/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/28699/events","html_url":"https://github.com/symfony/symfony/issues/28699","id":366243082,"node_id":"MDU6SXNzdWUzNjYyNDMwODI=","number":28699,"title":"[Form] TransformationFailedException when submitting a ISO8601 date to a DateTimeType field","user":{"login":"borodiliz","id":2467193,"node_id":"MDQ6VXNlcjI0NjcxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/2467193?v=4","gravatar_id":"","url":"https://api.github.com/users/borodiliz","html_url":"https://github.com/borodiliz","followers_url":"https://api.github.com/users/borodiliz/followers","following_url":"https://api.github.com/users/borodiliz/following{/other_user}","gists_url":"https://api.github.com/users/borodiliz/gists{/gist_id}","starred_url":"https://api.github.com/users/borodiliz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borodiliz/subscriptions","organizations_url":"https://api.github.com/users/borodiliz/orgs","repos_url":"https://api.github.com/users/borodiliz/repos","events_url":"https://api.github.com/users/borodiliz/events{/privacy}","received_events_url":"https://api.github.com/users/borodiliz/received_events","type":"User","site_admin":false},"labels":[{"id":100079,"node_id":"MDU6TGFiZWwxMDAwNzk=","url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":99594,"node_id":"MDU6TGFiZWw5OTU5NA==","url":"https://api.github.com/repos/symfony/symfony/labels/Form","name":"Form","color":"DDDDDD","default":false},{"id":237003792,"node_id":"MDU6TGFiZWwyMzcwMDM3OTI=","url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-03T09:13:09Z","updated_at":"2018-10-03T17:42:09Z","closed_at":null,"author_association":"NONE","body":"**Symfony version affected**: 4.1.5\r\n\r\n**Description**  \r\nAfter upgrading from `4.1.4` to `4.1.5` I'm getting a `TransformationFailedException`  when submitting a `ISO8601` date to a `DateTimeType` field\r\n\r\n**How to reproduce**  \r\nCreate form containing a `DateTimeType`\r\n```php\r\n            ->add(\r\n                'schedule',\r\n                DateTimeType::class,\r\n                array('widget' => 'single_text')\r\n```\r\nSubmit the following data to the previous field: `2018-10-03T10:00:00.000Z`\r\n\r\n**Possible Solution**  \r\nDowngrading 'symfony/form' to ' 4.1.4' solves the problem\r\n \r\n**Additional context**  \r\n```php\r\nTransformationFailedException {#2535 ▼\r\n  #message: \"The date \"2018-10-03T10:00:00.000Z\" is not a valid date.\"\r\n  #code: 0\r\n  #file: \"/var/www/vendor/symfony/form/Extension/Core/DataTransformer/DateTimeToHtml5LocalDateTimeTransformer.php\"\r\n  #line: 85\r\n  trace: {▼\r\n    /var/www/vendor/symfony/form/Extension/Core/DataTransformer/DateTimeToHtml5LocalDateTimeTransformer.php:85 {▶}\r\n    /var/www/vendor/symfony/form/Form.php:1112 {▶}\r\n    /var/www/vendor/symfony/form/Form.php:626 {▶}\r\n    /var/www/vendor/symfony/form/Form.php:566 {▶}\r\n    /var/www/src/Handler/MessageScheduleHandler.php:154 {▼\r\n      › );\r\n      › $form->submit($parameters, 'PATCH' !== $method);\r\n      › if ($form->isSubmitted() && $form->isValid()) {\r\n      arguments: {▶}\r\n    }\r\n    /var/www/src/Handler/MessageScheduleHandler.php:117 {▶}\r\n    /var/www/src/Controller/MessageScheduleController.php:250 {▶}\r\n    /var/www/vendor/symfony/http-kernel/HttpKernel.php:149 {▶}\r\n    /var/www/vendor/symfony/http-kernel/HttpKernel.php:66 {▶}\r\n    /var/www/vendor/symfony/http-kernel/Kernel.php:188 {▶}\r\n    /var/www/public/index.php:37 {▶}\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/426729871","html_url":"https://github.com/symfony/symfony/issues/28699#issuecomment-426729871","issue_url":"https://api.github.com/repos/symfony/symfony/issues/28699","id":426729871,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjcyOTg3MQ==","user":{"login":"xabbuh","id":1957048,"node_id":"MDQ6VXNlcjE5NTcwNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1957048?v=4","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T17:42:09Z","updated_at":"2018-10-03T17:42:09Z","author_association":"MEMBER","body":"Can you check if #28712 fixes the issue?"}}
{"actor":{"display_login":"xabbuh"}}