{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/6029","labels_url":"https://api.github.com/repos/symfony/symfony/issues/6029/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/6029/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/6029/events","html_url":"https://github.com/symfony/symfony/issues/6029","id":8419747,"number":6029,"title":"Deprecated: IntlDateFormatter::setTimeZoneId():","user":{"login":"henrikbjorn","id":19725,"avatar_url":"https://avatars.githubusercontent.com/u/19725?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikbjorn","html_url":"https://github.com/henrikbjorn","followers_url":"https://api.github.com/users/henrikbjorn/followers","following_url":"https://api.github.com/users/henrikbjorn/following{/other_user}","gists_url":"https://api.github.com/users/henrikbjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikbjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikbjorn/subscriptions","organizations_url":"https://api.github.com/users/henrikbjorn/orgs","repos_url":"https://api.github.com/users/henrikbjorn/repos","events_url":"https://api.github.com/users/henrikbjorn/events{/privacy}","received_events_url":"https://api.github.com/users/henrikbjorn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Easy%20Pick","name":"Easy Pick","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2012-11-16T13:45:10Z","updated_at":"2015-12-29T05:56:03Z","closed_at":"2013-09-13T08:56:36Z","body":"As i am playing with 5.5.0 alpha1 and a sf application i get this.\n\n```\nDeprecated: IntlDateFormatter::setTimeZoneId(): Use datefmt_set_timezone() instead, which also accepts a plain time zone identifier and for which this function is now an alias in /Users/Henrik/Work/myapp/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/DateType.php line 262\n```"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/167723581","html_url":"https://github.com/symfony/symfony/issues/6029#issuecomment-167723581","issue_url":"https://api.github.com/repos/symfony/symfony/issues/6029","id":167723581,"user":{"login":"jeffreydwalter","id":567047,"avatar_url":"https://avatars.githubusercontent.com/u/567047?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffreydwalter","html_url":"https://github.com/jeffreydwalter","followers_url":"https://api.github.com/users/jeffreydwalter/followers","following_url":"https://api.github.com/users/jeffreydwalter/following{/other_user}","gists_url":"https://api.github.com/users/jeffreydwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffreydwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffreydwalter/subscriptions","organizations_url":"https://api.github.com/users/jeffreydwalter/orgs","repos_url":"https://api.github.com/users/jeffreydwalter/repos","events_url":"https://api.github.com/users/jeffreydwalter/events{/privacy}","received_events_url":"https://api.github.com/users/jeffreydwalter/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T05:56:03Z","updated_at":"2015-12-29T05:56:03Z","body":"I know this issue is closed, and this resolution works, but wouldn't it be better to check for the existence of the setTimeZone() method, like so?\r\n\r\nif (method_exists($formatter, 'setTimeZone')) {\r\n$formatter->setTimeZone($timezone);\r\n} else {\r\n$formatter->setTimeZoneId($timezone);\r\n}"}}