{"action":"created","issue":{"url":"https://api.github.com/repos/moment/moment/issues/2859","labels_url":"https://api.github.com/repos/moment/moment/issues/2859/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/2859/comments","events_url":"https://api.github.com/repos/moment/moment/issues/2859/events","html_url":"https://github.com/moment/moment/issues/2859","id":124780108,"number":2859,"title":"Issue when parsing single 'Y' format","user":{"login":"michaelgeorgeattard","id":5755302,"avatar_url":"https://avatars.githubusercontent.com/u/5755302?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelgeorgeattard","html_url":"https://github.com/michaelgeorgeattard","followers_url":"https://api.github.com/users/michaelgeorgeattard/followers","following_url":"https://api.github.com/users/michaelgeorgeattard/following{/other_user}","gists_url":"https://api.github.com/users/michaelgeorgeattard/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelgeorgeattard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelgeorgeattard/subscriptions","organizations_url":"https://api.github.com/users/michaelgeorgeattard/orgs","repos_url":"https://api.github.com/users/michaelgeorgeattard/repos","events_url":"https://api.github.com/users/michaelgeorgeattard/events{/privacy}","received_events_url":"https://api.github.com/users/michaelgeorgeattard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-04T15:36:22Z","updated_at":"2016-01-06T10:00:52Z","closed_at":null,"body":"Hi,\r\n\r\nmoment('5.12.2015', 'D.M.Y').year() is giving 2016 (incorrect)\r\n\r\nwhile\r\n\r\nmoment('5.12.2015', 'D.M.YYYY').year() is giving 2015 (correct)\r\n\r\nIs single character year unsupported? Or is it a bug?\r\n\r\nWe are using locale strings from angular, and noticed the bug because of the year change.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/moment/moment/issues/comments/169281749","html_url":"https://github.com/moment/moment/issues/2859#issuecomment-169281749","issue_url":"https://api.github.com/repos/moment/moment/issues/2859","id":169281749,"user":{"login":"digitalgears","id":2647716,"avatar_url":"https://avatars.githubusercontent.com/u/2647716?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalgears","html_url":"https://github.com/digitalgears","followers_url":"https://api.github.com/users/digitalgears/followers","following_url":"https://api.github.com/users/digitalgears/following{/other_user}","gists_url":"https://api.github.com/users/digitalgears/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgears/subscriptions","organizations_url":"https://api.github.com/users/digitalgears/orgs","repos_url":"https://api.github.com/users/digitalgears/repos","events_url":"https://api.github.com/users/digitalgears/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgears/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T10:00:52Z","updated_at":"2016-01-06T10:00:52Z","body":"Im also seeing bugs with formatting in v2.11.0. When doing \r\n\r\nmoment(1441065600000).format('MMM')\r\n\r\nI get 'sept' returned which is wrong. It should be 'sep'. (all other months work fine)"}}