{"action":"created","issue":{"url":"https://api.github.com/repos/moment/moment/issues/3209","repository_url":"https://api.github.com/repos/moment/moment","labels_url":"https://api.github.com/repos/moment/moment/issues/3209/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/3209/comments","events_url":"https://api.github.com/repos/moment/moment/issues/3209/events","html_url":"https://github.com/moment/moment/issues/3209","id":158363842,"number":3209,"title":"Duration of 1 year converted to milliseconds becomes 11 month 30 days","user":{"login":"evil-shrike","id":1203230,"avatar_url":"https://avatars.githubusercontent.com/u/1203230?v=3","gravatar_id":"","url":"https://api.github.com/users/evil-shrike","html_url":"https://github.com/evil-shrike","followers_url":"https://api.github.com/users/evil-shrike/followers","following_url":"https://api.github.com/users/evil-shrike/following{/other_user}","gists_url":"https://api.github.com/users/evil-shrike/gists{/gist_id}","starred_url":"https://api.github.com/users/evil-shrike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evil-shrike/subscriptions","organizations_url":"https://api.github.com/users/evil-shrike/orgs","repos_url":"https://api.github.com/users/evil-shrike/repos","events_url":"https://api.github.com/users/evil-shrike/events{/privacy}","received_events_url":"https://api.github.com/users/evil-shrike/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moment/moment/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-03T13:10:40Z","updated_at":"2016-06-07T03:27:33Z","closed_at":null,"body":"It seems good:\r\n```\r\nmoment.duration(moment.duration(1,'y').asMilliseconds()).asDays()\r\n365\r\nmoment.duration(1,'y').asDays()\r\n365\r\n```\r\n\r\nBut:\r\n```\r\nvar d_new = moment.duration(moment.duration(1,'y').asMilliseconds());\r\ndnew.months()\r\n11\r\nd_new.days()\r\n30\r\n```\r\n\r\nAt first I thought that's because the current year is leap. But the same thing for months:\r\n```\r\nmoment.duration( moment.duration(1,'M').asMilliseconds() ).asMonths()\r\n0.9856465225158627\r\n```"},"comment":{"url":"https://api.github.com/repos/moment/moment/issues/comments/224161099","html_url":"https://github.com/moment/moment/issues/3209#issuecomment-224161099","issue_url":"https://api.github.com/repos/moment/moment/issues/3209","id":224161099,"user":{"login":"icambron","id":244988,"avatar_url":"https://avatars.githubusercontent.com/u/244988?v=3","gravatar_id":"","url":"https://api.github.com/users/icambron","html_url":"https://github.com/icambron","followers_url":"https://api.github.com/users/icambron/followers","following_url":"https://api.github.com/users/icambron/following{/other_user}","gists_url":"https://api.github.com/users/icambron/gists{/gist_id}","starred_url":"https://api.github.com/users/icambron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icambron/subscriptions","organizations_url":"https://api.github.com/users/icambron/orgs","repos_url":"https://api.github.com/users/icambron/repos","events_url":"https://api.github.com/users/icambron/events{/privacy}","received_events_url":"https://api.github.com/users/icambron/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T03:27:33Z","updated_at":"2016-06-07T03:27:33Z","body":"Yeah, I was thinking that too, but I think there are just those two."}}
{"actor":{"display_login":"icambron"}}