{"action":"closed","number":191,"pull_request":{"url":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/191","id":54713411,"html_url":"https://github.com/longbill/jquery-date-range-picker/pull/191","diff_url":"https://github.com/longbill/jquery-date-range-picker/pull/191.diff","patch_url":"https://github.com/longbill/jquery-date-range-picker/pull/191.patch","issue_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/191","number":191,"state":"closed","locked":false,"title":"Prevent infinite loop","user":{"login":"pqvst","id":4990657,"avatar_url":"https://avatars.githubusercontent.com/u/4990657?v=3","gravatar_id":"","url":"https://api.github.com/users/pqvst","html_url":"https://github.com/pqvst","followers_url":"https://api.github.com/users/pqvst/followers","following_url":"https://api.github.com/users/pqvst/following{/other_user}","gists_url":"https://api.github.com/users/pqvst/gists{/gist_id}","starred_url":"https://api.github.com/users/pqvst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pqvst/subscriptions","organizations_url":"https://api.github.com/users/pqvst/orgs","repos_url":"https://api.github.com/users/pqvst/repos","events_url":"https://api.github.com/users/pqvst/events{/privacy}","received_events_url":"https://api.github.com/users/pqvst/received_events","type":"User","site_admin":false},"body":"The different between timeTmp and opt.start may be less than a full day, in which case the loop will iterate forever. The cause for this is if there is a time zone change between timeTmp and opt.start (for example due to day lights saving time). This solution also makes sure that it doesn't get stuck if timeTmp and opt.start are the same value.","created_at":"2015-12-29T09:39:09Z","updated_at":"2016-01-19T13:42:12Z","closed_at":"2016-01-19T13:42:12Z","merged_at":"2016-01-19T13:42:12Z","merge_commit_sha":"5ab0cd0f90e9cd806535fb092a63ace0304daf19","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/191/commits","review_comments_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/191/comments","review_comment_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/191/comments","statuses_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/statuses/92ef75452e79ceff7481b3d5ca09e9a09f060dd7","head":{"label":"pqvst:master","ref":"master","sha":"92ef75452e79ceff7481b3d5ca09e9a09f060dd7","user":{"login":"pqvst","id":4990657,"avatar_url":"https://avatars.githubusercontent.com/u/4990657?v=3","gravatar_id":"","url":"https://api.github.com/users/pqvst","html_url":"https://github.com/pqvst","followers_url":"https://api.github.com/users/pqvst/followers","following_url":"https://api.github.com/users/pqvst/following{/other_user}","gists_url":"https://api.github.com/users/pqvst/gists{/gist_id}","starred_url":"https://api.github.com/users/pqvst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pqvst/subscriptions","organizations_url":"https://api.github.com/users/pqvst/orgs","repos_url":"https://api.github.com/users/pqvst/repos","events_url":"https://api.github.com/users/pqvst/events{/privacy}","received_events_url":"https://api.github.com/users/pqvst/received_events","type":"User","site_admin":false},"repo":{"id":48739921,"name":"jquery-date-range-picker","full_name":"pqvst/jquery-date-range-picker","owner":{"login":"pqvst","id":4990657,"avatar_url":"https://avatars.githubusercontent.com/u/4990657?v=3","gravatar_id":"","url":"https://api.github.com/users/pqvst","html_url":"https://github.com/pqvst","followers_url":"https://api.github.com/users/pqvst/followers","following_url":"https://api.github.com/users/pqvst/following{/other_user}","gists_url":"https://api.github.com/users/pqvst/gists{/gist_id}","starred_url":"https://api.github.com/users/pqvst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pqvst/subscriptions","organizations_url":"https://api.github.com/users/pqvst/orgs","repos_url":"https://api.github.com/users/pqvst/repos","events_url":"https://api.github.com/users/pqvst/events{/privacy}","received_events_url":"https://api.github.com/users/pqvst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pqvst/jquery-date-range-picker","description":"A jQuery plugin that allows user to select a date range","fork":true,"url":"https://api.github.com/repos/pqvst/jquery-date-range-picker","forks_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/forks","keys_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/teams","hooks_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/hooks","issue_events_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/issues/events{/number}","events_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/events","assignees_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/assignees{/user}","branches_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/branches{/branch}","tags_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/tags","blobs_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/git/refs{/sha}","trees_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/statuses/{sha}","languages_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/languages","stargazers_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/stargazers","contributors_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/contributors","subscribers_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/subscribers","subscription_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/subscription","commits_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/commits{/sha}","git_commits_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/git/commits{/sha}","comments_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/comments{/number}","issue_comment_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/issues/comments{/number}","contents_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/contents/{+path}","compare_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/merges","archive_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/downloads","issues_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/issues{/number}","pulls_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/pulls{/number}","milestones_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/milestones{/number}","notifications_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/labels{/name}","releases_url":"https://api.github.com/repos/pqvst/jquery-date-range-picker/releases{/id}","created_at":"2015-12-29T09:35:39Z","updated_at":"2015-12-29T09:35:40Z","pushed_at":"2015-12-29T09:38:12Z","git_url":"git://github.com/pqvst/jquery-date-range-picker.git","ssh_url":"git@github.com:pqvst/jquery-date-range-picker.git","clone_url":"https://github.com/pqvst/jquery-date-range-picker.git","svn_url":"https://github.com/pqvst/jquery-date-range-picker","homepage":"http://jszen.com/","size":675,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"longbill:master","ref":"master","sha":"0430ab397735047d197893e02826a30c2cb4f414","user":{"login":"longbill","id":451630,"avatar_url":"https://avatars.githubusercontent.com/u/451630?v=3","gravatar_id":"","url":"https://api.github.com/users/longbill","html_url":"https://github.com/longbill","followers_url":"https://api.github.com/users/longbill/followers","following_url":"https://api.github.com/users/longbill/following{/other_user}","gists_url":"https://api.github.com/users/longbill/gists{/gist_id}","starred_url":"https://api.github.com/users/longbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longbill/subscriptions","organizations_url":"https://api.github.com/users/longbill/orgs","repos_url":"https://api.github.com/users/longbill/repos","events_url":"https://api.github.com/users/longbill/events{/privacy}","received_events_url":"https://api.github.com/users/longbill/received_events","type":"User","site_admin":false},"repo":{"id":11613078,"name":"jquery-date-range-picker","full_name":"longbill/jquery-date-range-picker","owner":{"login":"longbill","id":451630,"avatar_url":"https://avatars.githubusercontent.com/u/451630?v=3","gravatar_id":"","url":"https://api.github.com/users/longbill","html_url":"https://github.com/longbill","followers_url":"https://api.github.com/users/longbill/followers","following_url":"https://api.github.com/users/longbill/following{/other_user}","gists_url":"https://api.github.com/users/longbill/gists{/gist_id}","starred_url":"https://api.github.com/users/longbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longbill/subscriptions","organizations_url":"https://api.github.com/users/longbill/orgs","repos_url":"https://api.github.com/users/longbill/repos","events_url":"https://api.github.com/users/longbill/events{/privacy}","received_events_url":"https://api.github.com/users/longbill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/longbill/jquery-date-range-picker","description":"A jQuery plugin that allows user to select a date range","fork":false,"url":"https://api.github.com/repos/longbill/jquery-date-range-picker","forks_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/forks","keys_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/teams","hooks_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/hooks","issue_events_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/events{/number}","events_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/events","assignees_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/assignees{/user}","branches_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/branches{/branch}","tags_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/tags","blobs_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/git/refs{/sha}","trees_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/statuses/{sha}","languages_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/languages","stargazers_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/stargazers","contributors_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/contributors","subscribers_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/subscribers","subscription_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/subscription","commits_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/commits{/sha}","git_commits_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/git/commits{/sha}","comments_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/comments{/number}","issue_comment_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/comments{/number}","contents_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/contents/{+path}","compare_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/merges","archive_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/downloads","issues_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues{/number}","pulls_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls{/number}","milestones_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/milestones{/number}","notifications_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/labels{/name}","releases_url":"https://api.github.com/repos/longbill/jquery-date-range-picker/releases{/id}","created_at":"2013-07-23T16:20:32Z","updated_at":"2016-01-18T17:50:30Z","pushed_at":"2016-01-19T13:42:12Z","git_url":"git://github.com/longbill/jquery-date-range-picker.git","ssh_url":"git@github.com:longbill/jquery-date-range-picker.git","clone_url":"https://github.com/longbill/jquery-date-range-picker.git","svn_url":"https://github.com/longbill/jquery-date-range-picker","homepage":"http://jszen.com/","size":947,"stargazers_count":413,"watchers_count":413,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":179,"mirror_url":null,"open_issues_count":43,"forks":179,"open_issues":43,"watchers":413,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/191"},"html":{"href":"https://github.com/longbill/jquery-date-range-picker/pull/191"},"issue":{"href":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/191"},"comments":{"href":"https://api.github.com/repos/longbill/jquery-date-range-picker/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/longbill/jquery-date-range-picker/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/longbill/jquery-date-range-picker/statuses/92ef75452e79ceff7481b3d5ca09e9a09f060dd7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"longbill","id":451630,"avatar_url":"https://avatars.githubusercontent.com/u/451630?v=3","gravatar_id":"","url":"https://api.github.com/users/longbill","html_url":"https://github.com/longbill","followers_url":"https://api.github.com/users/longbill/followers","following_url":"https://api.github.com/users/longbill/following{/other_user}","gists_url":"https://api.github.com/users/longbill/gists{/gist_id}","starred_url":"https://api.github.com/users/longbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longbill/subscriptions","organizations_url":"https://api.github.com/users/longbill/orgs","repos_url":"https://api.github.com/users/longbill/repos","events_url":"https://api.github.com/users/longbill/events{/privacy}","received_events_url":"https://api.github.com/users/longbill/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}