{"action":"created","issue":{"url":"https://api.github.com/repos/Adphorus/react-date-range/issues/215","repository_url":"https://api.github.com/repos/Adphorus/react-date-range","labels_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/215/comments","events_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/215/events","html_url":"https://github.com/Adphorus/react-date-range/issues/215","id":337587334,"node_id":"MDU6SXNzdWUzMzc1ODczMzQ=","number":215,"title":"Issues with month and year picker in scroll mode","user":{"login":"cmarquis","id":16885612,"node_id":"MDQ6VXNlcjE2ODg1NjEy","avatar_url":"https://avatars3.githubusercontent.com/u/16885612?v=4","gravatar_id":"","url":"https://api.github.com/users/cmarquis","html_url":"https://github.com/cmarquis","followers_url":"https://api.github.com/users/cmarquis/followers","following_url":"https://api.github.com/users/cmarquis/following{/other_user}","gists_url":"https://api.github.com/users/cmarquis/gists{/gist_id}","starred_url":"https://api.github.com/users/cmarquis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmarquis/subscriptions","organizations_url":"https://api.github.com/users/cmarquis/orgs","repos_url":"https://api.github.com/users/cmarquis/repos","events_url":"https://api.github.com/users/cmarquis/events{/privacy}","received_events_url":"https://api.github.com/users/cmarquis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"wethil","id":6503960,"node_id":"MDQ6VXNlcjY1MDM5NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/6503960?v=4","gravatar_id":"","url":"https://api.github.com/users/wethil","html_url":"https://github.com/wethil","followers_url":"https://api.github.com/users/wethil/followers","following_url":"https://api.github.com/users/wethil/following{/other_user}","gists_url":"https://api.github.com/users/wethil/gists{/gist_id}","starred_url":"https://api.github.com/users/wethil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wethil/subscriptions","organizations_url":"https://api.github.com/users/wethil/orgs","repos_url":"https://api.github.com/users/wethil/repos","events_url":"https://api.github.com/users/wethil/events{/privacy}","received_events_url":"https://api.github.com/users/wethil/received_events","type":"User","site_admin":false},"assignees":[{"login":"wethil","id":6503960,"node_id":"MDQ6VXNlcjY1MDM5NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/6503960?v=4","gravatar_id":"","url":"https://api.github.com/users/wethil","html_url":"https://github.com/wethil","followers_url":"https://api.github.com/users/wethil/followers","following_url":"https://api.github.com/users/wethil/following{/other_user}","gists_url":"https://api.github.com/users/wethil/gists{/gist_id}","starred_url":"https://api.github.com/users/wethil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wethil/subscriptions","organizations_url":"https://api.github.com/users/wethil/orgs","repos_url":"https://api.github.com/users/wethil/repos","events_url":"https://api.github.com/users/wethil/events{/privacy}","received_events_url":"https://api.github.com/users/wethil/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-02T16:35:12Z","updated_at":"2018-08-23T16:50:35Z","closed_at":null,"author_association":"NONE","body":"## Subject of the issue\r\nWhen in the infinite scroll mode the month and year picker act a bit strange. If your default range is during the current month of the current year the pickers show the month correct but last year rather than this year. Also when using the left/right scroll arrows to jump between months it seems to go back a month on the first click but the second click causes the date grid jump back to last year.\r\n\r\nThe following screenshot (default start and end date of yesterday):\r\n<img width=\"485\" alt=\"screen shot 2018-07-02 at 11 29 42 am\" src=\"https://user-images.githubusercontent.com/16885612/42175560-5bbb4b54-7deb-11e8-95c9-fd6e81d68807.png\">\r\n\r\nProduces:\r\n<img width=\"609\" alt=\"screen shot 2018-07-02 at 11 30 26 am\" src=\"https://user-images.githubusercontent.com/16885612/42175574-77a14eb8-7deb-11e8-9a0d-7086bf2a886d.png\">\r\n\r\nNotice how the year is off in the month and year picker but the grid shows the correct selection.\r\n \r\n## [BUG] Bug Reproduce Steps\r\n\r\n- Create a DateRangePicker with a default range that has a start and end date of yesterday and is set to infinite scroll.\r\n- Display the picker in a browser and notice the year dropdown is last year rather than the current year.\r\n- Use the left/right scroll arrows and notice the grid jumping between last year and this year.\r\n\r\n## [BUG] Expected behaviour\r\n- The month and year picker should have the correct date to match the range.\r\n- The left/right arrows should go to the correct months.\r\n\r\n## Environment\r\nPackage Version: 1.0.0-beta\r\nReact version: 16.4\r\nNode version: 8.9.4\r\nBrowser: Chrome 67\r\n"},"comment":{"url":"https://api.github.com/repos/Adphorus/react-date-range/issues/comments/415488503","html_url":"https://github.com/Adphorus/react-date-range/issues/215#issuecomment-415488503","issue_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/215","id":415488503,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTQ4ODUwMw==","user":{"login":"kesha-antonov","id":11584712,"node_id":"MDQ6VXNlcjExNTg0NzEy","avatar_url":"https://avatars2.githubusercontent.com/u/11584712?v=4","gravatar_id":"","url":"https://api.github.com/users/kesha-antonov","html_url":"https://github.com/kesha-antonov","followers_url":"https://api.github.com/users/kesha-antonov/followers","following_url":"https://api.github.com/users/kesha-antonov/following{/other_user}","gists_url":"https://api.github.com/users/kesha-antonov/gists{/gist_id}","starred_url":"https://api.github.com/users/kesha-antonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesha-antonov/subscriptions","organizations_url":"https://api.github.com/users/kesha-antonov/orgs","repos_url":"https://api.github.com/users/kesha-antonov/repos","events_url":"https://api.github.com/users/kesha-antonov/events{/privacy}","received_events_url":"https://api.github.com/users/kesha-antonov/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T16:50:35Z","updated_at":"2018-08-23T16:50:35Z","author_association":"NONE","body":"I have same problem\r\n<img width=\"370\" alt=\"screen shot 2018-08-23 at 19 50 10\" src=\"https://user-images.githubusercontent.com/11584712/44539811-c701d680-a70d-11e8-81be-128a01cd1230.png\">\r\n\r\nI see 1918 instead of 2018"}}
{"actor":{"display_login":"kesha-antonov"}}