{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/10","id":69599479,"html_url":"https://github.com/EducationalTestingService/gitlab-to-atlassian/pull/10","diff_url":"https://github.com/EducationalTestingService/gitlab-to-atlassian/pull/10.diff","patch_url":"https://github.com/EducationalTestingService/gitlab-to-atlassian/pull/10.patch","issue_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/issues/10","number":10,"state":"open","locked":false,"title":"Use dateutil and naive datetimes for date filtering","user":{"login":"yekibud","id":1264077,"avatar_url":"https://avatars.githubusercontent.com/u/1264077?v=3","gravatar_id":"","url":"https://api.github.com/users/yekibud","html_url":"https://github.com/yekibud","followers_url":"https://api.github.com/users/yekibud/followers","following_url":"https://api.github.com/users/yekibud/following{/other_user}","gists_url":"https://api.github.com/users/yekibud/gists{/gist_id}","starred_url":"https://api.github.com/users/yekibud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yekibud/subscriptions","organizations_url":"https://api.github.com/users/yekibud/orgs","repos_url":"https://api.github.com/users/yekibud/repos","events_url":"https://api.github.com/users/yekibud/events{/privacy}","received_events_url":"https://api.github.com/users/yekibud/received_events","type":"User","site_admin":false},"body":"Not sure how GitLab writes its date strings, but I think it may vary based on installation and server configuration.  The previous hard-coded format string failed for me with:\r\n\r\n```\r\nValueError: time data '2016-04-21T15:09:38.552-07:00' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'\r\n```\r\n\r\nI don't know of a good native fix for this, as `strptime` does not seem to support the above style of timezone off-set formatting, so I think it may be worth adding the trusty [python-dateutil](https://labix.org/python-dateutil) package to the dependencies for all-purpose date string parsing.\r\n\r\nI'm also not sure how this script ever worked since the default date filter is naive and the format string is timezone aware.  So I stripped `tzinfo` from the GL time data, since the expected `date_filter` parameter is `YYYY-MM-DD` anyway.\r\n\r\nSound good?","created_at":"2016-05-11T00:35:41Z","updated_at":"2016-05-11T00:35:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/10/commits","review_comments_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/10/comments","review_comment_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/issues/10/comments","statuses_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/statuses/f7e82679614c8a5707b0cd2258b9851d51980c1b","head":{"label":"yekibud:use-dateutil","ref":"use-dateutil","sha":"f7e82679614c8a5707b0cd2258b9851d51980c1b","user":{"login":"yekibud","id":1264077,"avatar_url":"https://avatars.githubusercontent.com/u/1264077?v=3","gravatar_id":"","url":"https://api.github.com/users/yekibud","html_url":"https://github.com/yekibud","followers_url":"https://api.github.com/users/yekibud/followers","following_url":"https://api.github.com/users/yekibud/following{/other_user}","gists_url":"https://api.github.com/users/yekibud/gists{/gist_id}","starred_url":"https://api.github.com/users/yekibud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yekibud/subscriptions","organizations_url":"https://api.github.com/users/yekibud/orgs","repos_url":"https://api.github.com/users/yekibud/repos","events_url":"https://api.github.com/users/yekibud/events{/privacy}","received_events_url":"https://api.github.com/users/yekibud/received_events","type":"User","site_admin":false},"repo":{"id":58472835,"name":"gitlab-to-atlassian","full_name":"yekibud/gitlab-to-atlassian","owner":{"login":"yekibud","id":1264077,"avatar_url":"https://avatars.githubusercontent.com/u/1264077?v=3","gravatar_id":"","url":"https://api.github.com/users/yekibud","html_url":"https://github.com/yekibud","followers_url":"https://api.github.com/users/yekibud/followers","following_url":"https://api.github.com/users/yekibud/following{/other_user}","gists_url":"https://api.github.com/users/yekibud/gists{/gist_id}","starred_url":"https://api.github.com/users/yekibud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yekibud/subscriptions","organizations_url":"https://api.github.com/users/yekibud/orgs","repos_url":"https://api.github.com/users/yekibud/repos","events_url":"https://api.github.com/users/yekibud/events{/privacy}","received_events_url":"https://api.github.com/users/yekibud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yekibud/gitlab-to-atlassian","description":"Scripts to help export information from GitLab to Atlassian JIRA and Stash.","fork":true,"url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian","forks_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/forks","keys_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/teams","hooks_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/hooks","issue_events_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/issues/events{/number}","events_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/events","assignees_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/assignees{/user}","branches_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/branches{/branch}","tags_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/tags","blobs_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/git/refs{/sha}","trees_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/statuses/{sha}","languages_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/languages","stargazers_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/stargazers","contributors_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/contributors","subscribers_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/subscribers","subscription_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/subscription","commits_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/commits{/sha}","git_commits_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/git/commits{/sha}","comments_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/comments{/number}","issue_comment_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/issues/comments{/number}","contents_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/contents/{+path}","compare_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/merges","archive_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/downloads","issues_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/issues{/number}","pulls_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/pulls{/number}","milestones_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/milestones{/number}","notifications_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/labels{/name}","releases_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/releases{/id}","deployments_url":"https://api.github.com/repos/yekibud/gitlab-to-atlassian/deployments","created_at":"2016-05-10T15:28:04Z","updated_at":"2016-05-10T15:28:05Z","pushed_at":"2016-05-11T00:16:32Z","git_url":"git://github.com/yekibud/gitlab-to-atlassian.git","ssh_url":"git@github.com:yekibud/gitlab-to-atlassian.git","clone_url":"https://github.com/yekibud/gitlab-to-atlassian.git","svn_url":"https://github.com/yekibud/gitlab-to-atlassian","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"EducationalTestingService:master","ref":"master","sha":"67dd6b252de6a47d24452f082b71ed9fc5bab899","user":{"login":"EducationalTestingService","id":4822867,"avatar_url":"https://avatars.githubusercontent.com/u/4822867?v=3","gravatar_id":"","url":"https://api.github.com/users/EducationalTestingService","html_url":"https://github.com/EducationalTestingService","followers_url":"https://api.github.com/users/EducationalTestingService/followers","following_url":"https://api.github.com/users/EducationalTestingService/following{/other_user}","gists_url":"https://api.github.com/users/EducationalTestingService/gists{/gist_id}","starred_url":"https://api.github.com/users/EducationalTestingService/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EducationalTestingService/subscriptions","organizations_url":"https://api.github.com/users/EducationalTestingService/orgs","repos_url":"https://api.github.com/users/EducationalTestingService/repos","events_url":"https://api.github.com/users/EducationalTestingService/events{/privacy}","received_events_url":"https://api.github.com/users/EducationalTestingService/received_events","type":"Organization","site_admin":false},"repo":{"id":23802947,"name":"gitlab-to-atlassian","full_name":"EducationalTestingService/gitlab-to-atlassian","owner":{"login":"EducationalTestingService","id":4822867,"avatar_url":"https://avatars.githubusercontent.com/u/4822867?v=3","gravatar_id":"","url":"https://api.github.com/users/EducationalTestingService","html_url":"https://github.com/EducationalTestingService","followers_url":"https://api.github.com/users/EducationalTestingService/followers","following_url":"https://api.github.com/users/EducationalTestingService/following{/other_user}","gists_url":"https://api.github.com/users/EducationalTestingService/gists{/gist_id}","starred_url":"https://api.github.com/users/EducationalTestingService/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EducationalTestingService/subscriptions","organizations_url":"https://api.github.com/users/EducationalTestingService/orgs","repos_url":"https://api.github.com/users/EducationalTestingService/repos","events_url":"https://api.github.com/users/EducationalTestingService/events{/privacy}","received_events_url":"https://api.github.com/users/EducationalTestingService/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EducationalTestingService/gitlab-to-atlassian","description":"Scripts to help export information from GitLab to Atlassian JIRA and Stash.","fork":false,"url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian","forks_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/forks","keys_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/teams","hooks_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/hooks","issue_events_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/issues/events{/number}","events_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/events","assignees_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/assignees{/user}","branches_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/branches{/branch}","tags_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/tags","blobs_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/git/refs{/sha}","trees_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/statuses/{sha}","languages_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/languages","stargazers_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/stargazers","contributors_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/contributors","subscribers_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/subscribers","subscription_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/subscription","commits_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/commits{/sha}","git_commits_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/git/commits{/sha}","comments_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/comments{/number}","issue_comment_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/issues/comments{/number}","contents_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/contents/{+path}","compare_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/merges","archive_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/downloads","issues_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/issues{/number}","pulls_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls{/number}","milestones_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/milestones{/number}","notifications_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/labels{/name}","releases_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/releases{/id}","deployments_url":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/deployments","created_at":"2014-09-08T18:30:30Z","updated_at":"2016-05-10T18:48:30Z","pushed_at":"2016-05-10T18:48:28Z","git_url":"git://github.com/EducationalTestingService/gitlab-to-atlassian.git","ssh_url":"git@github.com:EducationalTestingService/gitlab-to-atlassian.git","clone_url":"https://github.com/EducationalTestingService/gitlab-to-atlassian.git","svn_url":"https://github.com/EducationalTestingService/gitlab-to-atlassian","homepage":null,"size":21,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/10"},"html":{"href":"https://github.com/EducationalTestingService/gitlab-to-atlassian/pull/10"},"issue":{"href":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/issues/10"},"comments":{"href":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/EducationalTestingService/gitlab-to-atlassian/statuses/f7e82679614c8a5707b0cd2258b9851d51980c1b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":5,"deletions":9,"changed_files":2}}