{"action":"created","issue":{"url":"https://api.github.com/repos/andyearnshaw/Intl.js/issues/179","repository_url":"https://api.github.com/repos/andyearnshaw/Intl.js","labels_url":"https://api.github.com/repos/andyearnshaw/Intl.js/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/andyearnshaw/Intl.js/issues/179/comments","events_url":"https://api.github.com/repos/andyearnshaw/Intl.js/issues/179/events","html_url":"https://github.com/andyearnshaw/Intl.js/issues/179","id":155207757,"number":179,"title":"Formatting month - value of long falling back to short","user":{"login":"Arturszott","id":2734152,"avatar_url":"https://avatars.githubusercontent.com/u/2734152?v=3","gravatar_id":"","url":"https://api.github.com/users/Arturszott","html_url":"https://github.com/Arturszott","followers_url":"https://api.github.com/users/Arturszott/followers","following_url":"https://api.github.com/users/Arturszott/following{/other_user}","gists_url":"https://api.github.com/users/Arturszott/gists{/gist_id}","starred_url":"https://api.github.com/users/Arturszott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arturszott/subscriptions","organizations_url":"https://api.github.com/users/Arturszott/orgs","repos_url":"https://api.github.com/users/Arturszott/repos","events_url":"https://api.github.com/users/Arturszott/events{/privacy}","received_events_url":"https://api.github.com/users/Arturszott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/andyearnshaw/Intl.js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-17T08:54:43Z","updated_at":"2016-05-31T14:36:09Z","closed_at":null,"body":"Example failing test case:\r\n\r\n```\r\nassert(new IntlPolyfill.DateTimeFormat('en', {\r\n    month:'long',\r\n    year: 'numeric'\r\n}).format(new Date('2016/01/16')), 'January 2016');\r\n```\r\n\r\n`expected value January 2016 but the actual value is Jan 2016`\r\n\r\nI've been digging it for a while and it looks like bestFormat is not the best :)\r\n\r\nCheers!"},"comment":{"url":"https://api.github.com/repos/andyearnshaw/Intl.js/issues/comments/222708076","html_url":"https://github.com/andyearnshaw/Intl.js/issues/179#issuecomment-222708076","issue_url":"https://api.github.com/repos/andyearnshaw/Intl.js/issues/179","id":222708076,"user":{"login":"mkohlmyr","id":432668,"avatar_url":"https://avatars.githubusercontent.com/u/432668?v=3","gravatar_id":"","url":"https://api.github.com/users/mkohlmyr","html_url":"https://github.com/mkohlmyr","followers_url":"https://api.github.com/users/mkohlmyr/followers","following_url":"https://api.github.com/users/mkohlmyr/following{/other_user}","gists_url":"https://api.github.com/users/mkohlmyr/gists{/gist_id}","starred_url":"https://api.github.com/users/mkohlmyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkohlmyr/subscriptions","organizations_url":"https://api.github.com/users/mkohlmyr/orgs","repos_url":"https://api.github.com/users/mkohlmyr/repos","events_url":"https://api.github.com/users/mkohlmyr/events{/privacy}","received_events_url":"https://api.github.com/users/mkohlmyr/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T14:36:09Z","updated_at":"2016-05-31T14:36:09Z","body":"Using Intl.js `1.2.4` on NodeJS `v4.4.5`.\r\n```javascript\r\n> const intl = require(\"intl\")\r\nundefined\r\n> intl\r\n{ getCanonicalLocales: [Function],\r\n  __localeSensitiveProtos: \r\n   { Number: { toLocaleString: [Function] },\r\n     Date: \r\n      { toLocaleString: [Function],\r\n        toLocaleDateString: [Function],\r\n        toLocaleTimeString: [Function] } } }\r\n\r\n> new intl.DateTimeFormat('sv', {\"weekday\": \"short\"}).format(new Date(\"08/14/2016\"))\r\n'sön'\r\n> new intl.DateTimeFormat('sv', {\"weekday\": \"long\"}).format(new Date(\"08/14/2016\"))\r\n'sön' <-- should be söndag\r\n\r\n> new intl.DateTimeFormat('dk', {\"weekday\": \"short\"}).format(new Date(\"08/14/2016\"))\r\n'So.'\r\n> new intl.DateTimeFormat('dk', {\"weekday\": \"long\"}).format(new Date(\"08/14/2016\"))\r\n'So.' <-- should be Søndag\r\n```\r\nSome further examples\r\n```javascript\r\n> new intl.DateTimeFormat('es', {\"month\": \"long\"}).format(new Date(\"08/14/2016\"))\r\n'ago.' <-- should be agosto\r\n\r\n> new intl.DateTimeFormat('no', {\"month\": \"long\"}).format(new Date(\"08/14/2016\"))\r\n'Aug.' <-- should be August\r\n\r\n> new intl.DateTimeFormat('sv', {\"month\": \"long\"}).format(new Date(\"10/12/2016\"))\r\n'okt.' <-- should be oktober\r\n\r\n> new intl.DateTimeFormat('sv', {\"weekday\": \"narrow\"}).format(new Date(\"10/12/2016\"))\r\n'ons' <-- should be O\r\n\r\n> new intl.DateTimeFormat('en', {\"weekday\": \"narrow\"}).format(new Date(\"10/12/2016\"))\r\n'Wed' <-- should be W\r\n\r\n```\r\n"}}
{"actor":{"display_login":"mkohlmyr"}}