{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7301","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7301/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7301/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7301/events","html_url":"https://github.com/yiisoft/yii2/issues/7301","id":57745750,"number":7301,"title":"i18n relativeTime format problem","user":{"login":"sidtj","id":412490,"avatar_url":"https://avatars.githubusercontent.com/u/412490?v=3","gravatar_id":"","url":"https://api.github.com/users/sidtj","html_url":"https://github.com/sidtj","followers_url":"https://api.github.com/users/sidtj/followers","following_url":"https://api.github.com/users/sidtj/following{/other_user}","gists_url":"https://api.github.com/users/sidtj/gists{/gist_id}","starred_url":"https://api.github.com/users/sidtj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidtj/subscriptions","organizations_url":"https://api.github.com/users/sidtj/orgs","repos_url":"https://api.github.com/users/sidtj/repos","events_url":"https://api.github.com/users/sidtj/events{/privacy}","received_events_url":"https://api.github.com/users/sidtj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:to%20be%20verified","name":"status:to be verified","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/9/labels","id":831720,"number":9,"title":"2.0.x","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":291,"closed_issues":1,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2015-02-23T12:20:54Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-02-15T20:58:51Z","updated_at":"2015-02-23T16:07:38Z","closed_at":null,"body":"Hi,\r\n\r\nI have this in my gridview:\r\n```php\r\n<?= GridView::widget([\r\n        'dataProvider' => $dataProvider,\r\n        'filterModel' => $searchModel,\r\n        'columns' => [\r\n            ...\r\n            [\r\n                'attribute' => 'created_at',\r\n                // 'value' => 'created_at:relativeTime' does not work too so I tried this:\r\n                'value' => function ($data) {\r\n                    return Yii::$app->formatter->asRelativeTime($data->created_at);\r\n                },\r\n                'contentOptions' => ['style' => 'width:12%'],\r\n            ],\r\n            ...\r\n        ],\r\n    ]); ?>\r\n```\r\n\r\nIt works ok locally, but on server, it does not work properly. Instead of to see something like '1 hour ago', i see exactly this: `{delta, plural, =1{há 1 hora} other{há # horas}}` (my language is pt-BR).\r\n\r\nI have already checked the requirements.php (mysite.com/requirements.php) and `intl` is installed and working. I also tryed to use `Yii::$app->formatter->asRelativeTime($value)` but with the same problematic result.\r\n\r\nIs this some type of specific-server-or-server-configuration-bug? If isn't, where should I look for the problem?\r\n\r\nThank you so much!\r\nAnd guys, this framework is really awesome. I use it since 2010 in my projects! Congratulations!"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/75572362","html_url":"https://github.com/yiisoft/yii2/issues/7301#issuecomment-75572362","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/7301","id":75572362,"user":{"login":"lynicidn","id":7407411,"avatar_url":"https://avatars.githubusercontent.com/u/7407411?v=3","gravatar_id":"","url":"https://api.github.com/users/lynicidn","html_url":"https://github.com/lynicidn","followers_url":"https://api.github.com/users/lynicidn/followers","following_url":"https://api.github.com/users/lynicidn/following{/other_user}","gists_url":"https://api.github.com/users/lynicidn/gists{/gist_id}","starred_url":"https://api.github.com/users/lynicidn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynicidn/subscriptions","organizations_url":"https://api.github.com/users/lynicidn/orgs","repos_url":"https://api.github.com/users/lynicidn/repos","events_url":"https://api.github.com/users/lynicidn/events{/privacy}","received_events_url":"https://api.github.com/users/lynicidn/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T16:07:38Z","updated_at":"2015-02-23T16:07:38Z","body":"@cebe i think problem with locales, need set utf-8"}}