{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony-demo/issues/123","labels_url":"https://api.github.com/repos/symfony/symfony-demo/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony-demo/issues/123/comments","events_url":"https://api.github.com/repos/symfony/symfony-demo/issues/123/events","html_url":"https://github.com/symfony/symfony-demo/pull/123","id":98101075,"number":123,"title":"Fix localizeddate filter error when php5-intl lib do not installed","user":{"login":"bocharsky-bw","id":3317635,"avatar_url":"https://avatars.githubusercontent.com/u/3317635?v=3","gravatar_id":"","url":"https://api.github.com/users/bocharsky-bw","html_url":"https://github.com/bocharsky-bw","followers_url":"https://api.github.com/users/bocharsky-bw/followers","following_url":"https://api.github.com/users/bocharsky-bw/following{/other_user}","gists_url":"https://api.github.com/users/bocharsky-bw/gists{/gist_id}","starred_url":"https://api.github.com/users/bocharsky-bw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocharsky-bw/subscriptions","organizations_url":"https://api.github.com/users/bocharsky-bw/orgs","repos_url":"https://api.github.com/users/bocharsky-bw/repos","events_url":"https://api.github.com/users/bocharsky-bw/events{/privacy}","received_events_url":"https://api.github.com/users/bocharsky-bw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-30T07:15:08Z","updated_at":"2015-07-30T11:06:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-demo/pulls/123","html_url":"https://github.com/symfony/symfony-demo/pull/123","diff_url":"https://github.com/symfony/symfony-demo/pull/123.diff","patch_url":"https://github.com/symfony/symfony-demo/pull/123.patch"},"body":"If `locale` is null (by default for [localizeddate](https://github.com/twigphp/Twig-extensions/blob/master/lib/Twig/Extensions/Extension/Intl.php#L46) filter) and `php5-intl` package do not installed - we get [MethodArgumentValueNotImplementedException](https://github.com/symfony/Intl/blob/master/DateFormatter/IntlDateFormatter.php#L148-L150) exception.\r\n\r\nSo if we pass `app.request.locale` as third argument to `localizeddate` filter we get worked english version. However other langs will thrown exception while `php5-intl` will be installed.\r\n\r\n![fix-localized-date-filter](https://cloud.githubusercontent.com/assets/3317635/8977733/3e1bf7ba-36a4-11e5-8a97-cb95015bbcf0.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony-demo/issues/comments/126274419","html_url":"https://github.com/symfony/symfony-demo/pull/123#issuecomment-126274419","issue_url":"https://api.github.com/repos/symfony/symfony-demo/issues/123","id":126274419,"user":{"login":"stof","id":439401,"avatar_url":"https://avatars.githubusercontent.com/u/439401?v=3","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T11:06:40Z","updated_at":"2015-07-30T11:06:40Z","body":"no we should not. We should fix the stub implementation to consider that ``null`` as locale means using the default intl locale (and so ``en`` in the case of the stub), to match the ext-intl behavior"}}