{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/13311","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/13311/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/13311/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/13311/events","html_url":"https://github.com/yiisoft/yii2/issues/13311","id":198313337,"number":13311,"title":"Format as date 0n 01-01-2017 returns wrong year","user":{"login":"wimrademaker","id":5094935,"avatar_url":"https://avatars.githubusercontent.com/u/5094935?v=3","gravatar_id":"","url":"https://api.github.com/users/wimrademaker","html_url":"https://github.com/wimrademaker","followers_url":"https://api.github.com/users/wimrademaker/followers","following_url":"https://api.github.com/users/wimrademaker/following{/other_user}","gists_url":"https://api.github.com/users/wimrademaker/gists{/gist_id}","starred_url":"https://api.github.com/users/wimrademaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wimrademaker/subscriptions","organizations_url":"https://api.github.com/users/wimrademaker/orgs","repos_url":"https://api.github.com/users/wimrademaker/repos","events_url":"https://api.github.com/users/wimrademaker/events{/privacy}","received_events_url":"https://api.github.com/users/wimrademaker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-02T09:49:47Z","updated_at":"2017-01-02T09:49:47Z","closed_at":null,"body":"The date formatter returns a wrong year (2016) when using January 1 2017\r\nUsing another day seems to go fine.\r\n\r\n<?= Yii::$app->formatter->asDate('2017-01-01', 'dd-MM-Y')?>\r\nReturns 01-01-2016\r\n\r\n<?= Yii::$app->formatter->asDate('2017-01-02', 'dd-MM-Y')?>\r\nReturns 02-01-2017\r\n\r\nYii version 2.0.10 \r\nPHP 5.6.29\r\n\r\n"}}
{"actor":{"display_login":"wimrademaker"}}