{"action":"created","issue":{"url":"https://api.github.com/repos/amsul/pickadate.js/issues/650","labels_url":"https://api.github.com/repos/amsul/pickadate.js/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/amsul/pickadate.js/issues/650/comments","events_url":"https://api.github.com/repos/amsul/pickadate.js/issues/650/events","html_url":"https://github.com/amsul/pickadate.js/issues/650","id":59818410,"number":650,"title":"Infinite loop when using years in the range [0, 99] for max date restriction","user":{"login":"stevenfan","id":683082,"avatar_url":"https://avatars.githubusercontent.com/u/683082?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenfan","html_url":"https://github.com/stevenfan","followers_url":"https://api.github.com/users/stevenfan/followers","following_url":"https://api.github.com/users/stevenfan/following{/other_user}","gists_url":"https://api.github.com/users/stevenfan/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenfan/subscriptions","organizations_url":"https://api.github.com/users/stevenfan/orgs","repos_url":"https://api.github.com/users/stevenfan/repos","events_url":"https://api.github.com/users/stevenfan/events{/privacy}","received_events_url":"https://api.github.com/users/stevenfan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amsul/pickadate.js/labels/wontfix%20/%20invalid","name":"wontfix / invalid","color":"f5f5f5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-04T16:02:26Z","updated_at":"2015-04-20T17:56:12Z","closed_at":null,"body":"This causes an infinite loop on Chrome 40.0.2214.115 (64-bit), because during the search for a valid date after updating the max, the search year always starts at 1999, instead of 99. This could be fixed by always using Date objects for intermediate date calculations instead of arrays of integers.\r\n\r\nhttp://codepen.io/anon/pen/xbJYQQ"},"comment":{"url":"https://api.github.com/repos/amsul/pickadate.js/issues/comments/94524316","html_url":"https://github.com/amsul/pickadate.js/issues/650#issuecomment-94524316","issue_url":"https://api.github.com/repos/amsul/pickadate.js/issues/650","id":94524316,"user":{"login":"stevenfan","id":683082,"avatar_url":"https://avatars.githubusercontent.com/u/683082?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenfan","html_url":"https://github.com/stevenfan","followers_url":"https://api.github.com/users/stevenfan/followers","following_url":"https://api.github.com/users/stevenfan/following{/other_user}","gists_url":"https://api.github.com/users/stevenfan/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenfan/subscriptions","organizations_url":"https://api.github.com/users/stevenfan/orgs","repos_url":"https://api.github.com/users/stevenfan/repos","events_url":"https://api.github.com/users/stevenfan/events{/privacy}","received_events_url":"https://api.github.com/users/stevenfan/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T17:56:12Z","updated_at":"2015-04-20T17:56:12Z","body":"This has nothing to do with the date parsing - it has to do with the infinite loop in certain browsers, which happens because of the date parsing being different. The reason why the issue only affects certain browsers is because Javascript's Date() has different behaviour in different browsers."}}