{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/blueprint/issues/431","repository_url":"https://api.github.com/repos/palantir/blueprint","labels_url":"https://api.github.com/repos/palantir/blueprint/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/palantir/blueprint/issues/431/comments","events_url":"https://api.github.com/repos/palantir/blueprint/issues/431/events","html_url":"https://github.com/palantir/blueprint/issues/431","id":199623552,"number":431,"title":"Daterangepicker nextMonth logic is incorrect","user":{"login":"themadcreator","id":569364,"avatar_url":"https://avatars.githubusercontent.com/u/569364?v=3","gravatar_id":"","url":"https://api.github.com/users/themadcreator","html_url":"https://github.com/themadcreator","followers_url":"https://api.github.com/users/themadcreator/followers","following_url":"https://api.github.com/users/themadcreator/following{/other_user}","gists_url":"https://api.github.com/users/themadcreator/gists{/gist_id}","starred_url":"https://api.github.com/users/themadcreator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themadcreator/subscriptions","organizations_url":"https://api.github.com/users/themadcreator/orgs","repos_url":"https://api.github.com/users/themadcreator/repos","events_url":"https://api.github.com/users/themadcreator/events{/privacy}","received_events_url":"https://api.github.com/users/themadcreator/received_events","type":"User","site_admin":false},"labels":[{"id":480887498,"url":"https://api.github.com/repos/palantir/blueprint/labels/Package:%20datetime","name":"Package: datetime","color":"f5f8fa","default":false},{"id":468827752,"url":"https://api.github.com/repos/palantir/blueprint/labels/Type:%20bug","name":"Type: bug","color":"de4343","default":false}],"state":"open","locked":false,"assignee":{"login":"leebyp","id":6375593,"avatar_url":"https://avatars.githubusercontent.com/u/6375593?v=3","gravatar_id":"","url":"https://api.github.com/users/leebyp","html_url":"https://github.com/leebyp","followers_url":"https://api.github.com/users/leebyp/followers","following_url":"https://api.github.com/users/leebyp/following{/other_user}","gists_url":"https://api.github.com/users/leebyp/gists{/gist_id}","starred_url":"https://api.github.com/users/leebyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebyp/subscriptions","organizations_url":"https://api.github.com/users/leebyp/orgs","repos_url":"https://api.github.com/users/leebyp/repos","events_url":"https://api.github.com/users/leebyp/events{/privacy}","received_events_url":"https://api.github.com/users/leebyp/received_events","type":"User","site_admin":false},"assignees":[{"login":"leebyp","id":6375593,"avatar_url":"https://avatars.githubusercontent.com/u/6375593?v=3","gravatar_id":"","url":"https://api.github.com/users/leebyp","html_url":"https://github.com/leebyp","followers_url":"https://api.github.com/users/leebyp/followers","following_url":"https://api.github.com/users/leebyp/following{/other_user}","gists_url":"https://api.github.com/users/leebyp/gists{/gist_id}","starred_url":"https://api.github.com/users/leebyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebyp/subscriptions","organizations_url":"https://api.github.com/users/leebyp/orgs","repos_url":"https://api.github.com/users/leebyp/repos","events_url":"https://api.github.com/users/leebyp/events{/privacy}","received_events_url":"https://api.github.com/users/leebyp/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/palantir/blueprint/milestones/7","html_url":"https://github.com/palantir/blueprint/milestone/7","labels_url":"https://api.github.com/repos/palantir/blueprint/milestones/7/labels","id":2165183,"number":7,"title":"1.6.0","description":"","creator":{"login":"llorca","id":199754,"avatar_url":"https://avatars.githubusercontent.com/u/199754?v=3","gravatar_id":"","url":"https://api.github.com/users/llorca","html_url":"https://github.com/llorca","followers_url":"https://api.github.com/users/llorca/followers","following_url":"https://api.github.com/users/llorca/following{/other_user}","gists_url":"https://api.github.com/users/llorca/gists{/gist_id}","starred_url":"https://api.github.com/users/llorca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llorca/subscriptions","organizations_url":"https://api.github.com/users/llorca/orgs","repos_url":"https://api.github.com/users/llorca/repos","events_url":"https://api.github.com/users/llorca/events{/privacy}","received_events_url":"https://api.github.com/users/llorca/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":0,"state":"open","created_at":"2016-11-30T00:44:36Z","updated_at":"2017-01-09T19:57:19Z","due_on":"2017-01-13T08:00:00Z","closed_at":null},"comments":4,"created_at":"2017-01-09T18:18:40Z","updated_at":"2017-01-09T19:57:39Z","closed_at":null,"body":"### Bug report\r\n\r\n- __Package version(s)__: latest\r\n- __Browser and OS versions__: 1.5\r\n\r\nhttps://github.com/palantir/blueprint/blob/master/packages/datetime/src/dateRangePicker.tsx#L401\r\n\r\nThis code uses `12` for december, but should be `11` since it's zero-based.\r\n\r\nCorrect code should read:\r\n```\r\n// 0 is january, 11 is december\r\nfunction getNextMonth([month, year]: DisplayMonth): DisplayMonth {\r\n  return month === 11 ? [0, year + 1] : [month + 1, year];\r\n}\r\n\r\nfunction getPreviousMonth([month, year]: DisplayMonth): DisplayMonth {\r\n  return month === 0 ? [11, year - 1] : [month - 1, year];\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/palantir/blueprint/issues/comments/271390559","html_url":"https://github.com/palantir/blueprint/issues/431#issuecomment-271390559","issue_url":"https://api.github.com/repos/palantir/blueprint/issues/431","id":271390559,"user":{"login":"giladgray","id":464822,"avatar_url":"https://avatars.githubusercontent.com/u/464822?v=3","gravatar_id":"","url":"https://api.github.com/users/giladgray","html_url":"https://github.com/giladgray","followers_url":"https://api.github.com/users/giladgray/followers","following_url":"https://api.github.com/users/giladgray/following{/other_user}","gists_url":"https://api.github.com/users/giladgray/gists{/gist_id}","starred_url":"https://api.github.com/users/giladgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giladgray/subscriptions","organizations_url":"https://api.github.com/users/giladgray/orgs","repos_url":"https://api.github.com/users/giladgray/repos","events_url":"https://api.github.com/users/giladgray/events{/privacy}","received_events_url":"https://api.github.com/users/giladgray/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T19:57:39Z","updated_at":"2017-01-09T19:57:39Z","body":"^ 👍  even better"}}
{"actor":{"display_login":"giladgray"}}