{"action":"created","comment":{"url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments/71072986","id":71072986,"diff_hunk":"@@ -23,16 +25,19 @@\n if args.verbose:\n \tlogging.basicConfig(level=logging.DEBUG)\n \n-r = requests.get(\"http://\" + server_url + \"/getData?from_date=\" + from_date + \"&to_date=\" + to_date)\n+from_date_UTC = arrow.get(from_date).replace(tzinfo='local').to('utc').format('YYYY-MM-DD HH:mm:ss')","path":"request_public_data.py","position":22,"original_position":22,"commit_id":"eba2eaf29de857a92632eba9c0720f68079d1cc1","original_commit_id":"eba2eaf29de857a92632eba9c0720f68079d1cc1","user":{"login":"shankari","id":2423263,"avatar_url":"https://avatars.githubusercontent.com/u/2423263?v=3","gravatar_id":"","url":"https://api.github.com/users/shankari","html_url":"https://github.com/shankari","followers_url":"https://api.github.com/users/shankari/followers","following_url":"https://api.github.com/users/shankari/following{/other_user}","gists_url":"https://api.github.com/users/shankari/gists{/gist_id}","starred_url":"https://api.github.com/users/shankari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankari/subscriptions","organizations_url":"https://api.github.com/users/shankari/orgs","repos_url":"https://api.github.com/users/shankari/repos","events_url":"https://api.github.com/users/shankari/events{/privacy}","received_events_url":"https://api.github.com/users/shankari/received_events","type":"User","site_admin":false},"body":"I am not sure that this actually parses the data correctly. IIRC, you need to do\r\n\r\n`arrow.get(year=xx, month=xx, day=xx, tzinfo='local')`\r\nthen you can just do `.timestamp` on that.\r\n\r\nI'd suggest some poking around with arrow in an ipython notebook","created_at":"2016-07-16T22:52:51Z","updated_at":"2016-07-16T22:52:51Z","html_url":"https://github.com/e-mission/e-mission-server/pull/313#discussion_r71072986","pull_request_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313","_links":{"self":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments/71072986"},"html":{"href":"https://github.com/e-mission/e-mission-server/pull/313#discussion_r71072986"},"pull_request":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313","id":77518356,"html_url":"https://github.com/e-mission/e-mission-server/pull/313","diff_url":"https://github.com/e-mission/e-mission-server/pull/313.diff","patch_url":"https://github.com/e-mission/e-mission-server/pull/313.patch","issue_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/313","number":313,"state":"closed","locked":false,"title":"Fixed the script for pulling and loading public data","user":{"login":"yw374cornell","id":7893904,"avatar_url":"https://avatars.githubusercontent.com/u/7893904?v=3","gravatar_id":"","url":"https://api.github.com/users/yw374cornell","html_url":"https://github.com/yw374cornell","followers_url":"https://api.github.com/users/yw374cornell/followers","following_url":"https://api.github.com/users/yw374cornell/following{/other_user}","gists_url":"https://api.github.com/users/yw374cornell/gists{/gist_id}","starred_url":"https://api.github.com/users/yw374cornell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yw374cornell/subscriptions","organizations_url":"https://api.github.com/users/yw374cornell/orgs","repos_url":"https://api.github.com/users/yw374cornell/repos","events_url":"https://api.github.com/users/yw374cornell/events{/privacy}","received_events_url":"https://api.github.com/users/yw374cornell/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-14T20:15:38Z","updated_at":"2016-07-16T22:52:51Z","closed_at":"2016-07-16T01:17:21Z","merged_at":"2016-07-16T01:17:21Z","merge_commit_sha":"07c2e9e5bb5e5cd895e5d1514e9eff9b41df7a83","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313/commits","review_comments_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313/comments","review_comment_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/313/comments","statuses_url":"https://api.github.com/repos/e-mission/e-mission-server/statuses/eba2eaf29de857a92632eba9c0720f68079d1cc1","head":{"label":"yw374cornell:public_api","ref":"public_api","sha":"eba2eaf29de857a92632eba9c0720f68079d1cc1","user":{"login":"yw374cornell","id":7893904,"avatar_url":"https://avatars.githubusercontent.com/u/7893904?v=3","gravatar_id":"","url":"https://api.github.com/users/yw374cornell","html_url":"https://github.com/yw374cornell","followers_url":"https://api.github.com/users/yw374cornell/followers","following_url":"https://api.github.com/users/yw374cornell/following{/other_user}","gists_url":"https://api.github.com/users/yw374cornell/gists{/gist_id}","starred_url":"https://api.github.com/users/yw374cornell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yw374cornell/subscriptions","organizations_url":"https://api.github.com/users/yw374cornell/orgs","repos_url":"https://api.github.com/users/yw374cornell/repos","events_url":"https://api.github.com/users/yw374cornell/events{/privacy}","received_events_url":"https://api.github.com/users/yw374cornell/received_events","type":"User","site_admin":false},"repo":{"id":60883980,"name":"e-mission-server","full_name":"yw374cornell/e-mission-server","owner":{"login":"yw374cornell","id":7893904,"avatar_url":"https://avatars.githubusercontent.com/u/7893904?v=3","gravatar_id":"","url":"https://api.github.com/users/yw374cornell","html_url":"https://github.com/yw374cornell","followers_url":"https://api.github.com/users/yw374cornell/followers","following_url":"https://api.github.com/users/yw374cornell/following{/other_user}","gists_url":"https://api.github.com/users/yw374cornell/gists{/gist_id}","starred_url":"https://api.github.com/users/yw374cornell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yw374cornell/subscriptions","organizations_url":"https://api.github.com/users/yw374cornell/orgs","repos_url":"https://api.github.com/users/yw374cornell/repos","events_url":"https://api.github.com/users/yw374cornell/events{/privacy}","received_events_url":"https://api.github.com/users/yw374cornell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yw374cornell/e-mission-server","description":"The backend (server) code for the e-mission server","fork":true,"url":"https://api.github.com/repos/yw374cornell/e-mission-server","forks_url":"https://api.github.com/repos/yw374cornell/e-mission-server/forks","keys_url":"https://api.github.com/repos/yw374cornell/e-mission-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yw374cornell/e-mission-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yw374cornell/e-mission-server/teams","hooks_url":"https://api.github.com/repos/yw374cornell/e-mission-server/hooks","issue_events_url":"https://api.github.com/repos/yw374cornell/e-mission-server/issues/events{/number}","events_url":"https://api.github.com/repos/yw374cornell/e-mission-server/events","assignees_url":"https://api.github.com/repos/yw374cornell/e-mission-server/assignees{/user}","branches_url":"https://api.github.com/repos/yw374cornell/e-mission-server/branches{/branch}","tags_url":"https://api.github.com/repos/yw374cornell/e-mission-server/tags","blobs_url":"https://api.github.com/repos/yw374cornell/e-mission-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yw374cornell/e-mission-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yw374cornell/e-mission-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/yw374cornell/e-mission-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yw374cornell/e-mission-server/statuses/{sha}","languages_url":"https://api.github.com/repos/yw374cornell/e-mission-server/languages","stargazers_url":"https://api.github.com/repos/yw374cornell/e-mission-server/stargazers","contributors_url":"https://api.github.com/repos/yw374cornell/e-mission-server/contributors","subscribers_url":"https://api.github.com/repos/yw374cornell/e-mission-server/subscribers","subscription_url":"https://api.github.com/repos/yw374cornell/e-mission-server/subscription","commits_url":"https://api.github.com/repos/yw374cornell/e-mission-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/yw374cornell/e-mission-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/yw374cornell/e-mission-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/yw374cornell/e-mission-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/yw374cornell/e-mission-server/contents/{+path}","compare_url":"https://api.github.com/repos/yw374cornell/e-mission-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yw374cornell/e-mission-server/merges","archive_url":"https://api.github.com/repos/yw374cornell/e-mission-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yw374cornell/e-mission-server/downloads","issues_url":"https://api.github.com/repos/yw374cornell/e-mission-server/issues{/number}","pulls_url":"https://api.github.com/repos/yw374cornell/e-mission-server/pulls{/number}","milestones_url":"https://api.github.com/repos/yw374cornell/e-mission-server/milestones{/number}","notifications_url":"https://api.github.com/repos/yw374cornell/e-mission-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yw374cornell/e-mission-server/labels{/name}","releases_url":"https://api.github.com/repos/yw374cornell/e-mission-server/releases{/id}","deployments_url":"https://api.github.com/repos/yw374cornell/e-mission-server/deployments","created_at":"2016-06-11T00:23:33Z","updated_at":"2016-06-11T00:23:40Z","pushed_at":"2016-07-14T20:13:54Z","git_url":"git://github.com/yw374cornell/e-mission-server.git","ssh_url":"git@github.com:yw374cornell/e-mission-server.git","clone_url":"https://github.com/yw374cornell/e-mission-server.git","svn_url":"https://github.com/yw374cornell/e-mission-server","homepage":"https://e-mission.eecs.berkeley.edu","size":92205,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","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":"e-mission:master","ref":"master","sha":"14fec6809e2e3acf9fced47b8f7ad96028dfefd3","user":{"login":"e-mission","id":10713694,"avatar_url":"https://avatars.githubusercontent.com/u/10713694?v=3","gravatar_id":"","url":"https://api.github.com/users/e-mission","html_url":"https://github.com/e-mission","followers_url":"https://api.github.com/users/e-mission/followers","following_url":"https://api.github.com/users/e-mission/following{/other_user}","gists_url":"https://api.github.com/users/e-mission/gists{/gist_id}","starred_url":"https://api.github.com/users/e-mission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-mission/subscriptions","organizations_url":"https://api.github.com/users/e-mission/orgs","repos_url":"https://api.github.com/users/e-mission/repos","events_url":"https://api.github.com/users/e-mission/events{/privacy}","received_events_url":"https://api.github.com/users/e-mission/received_events","type":"Organization","site_admin":false},"repo":{"id":26307245,"name":"e-mission-server","full_name":"e-mission/e-mission-server","owner":{"login":"e-mission","id":10713694,"avatar_url":"https://avatars.githubusercontent.com/u/10713694?v=3","gravatar_id":"","url":"https://api.github.com/users/e-mission","html_url":"https://github.com/e-mission","followers_url":"https://api.github.com/users/e-mission/followers","following_url":"https://api.github.com/users/e-mission/following{/other_user}","gists_url":"https://api.github.com/users/e-mission/gists{/gist_id}","starred_url":"https://api.github.com/users/e-mission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-mission/subscriptions","organizations_url":"https://api.github.com/users/e-mission/orgs","repos_url":"https://api.github.com/users/e-mission/repos","events_url":"https://api.github.com/users/e-mission/events{/privacy}","received_events_url":"https://api.github.com/users/e-mission/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/e-mission/e-mission-server","description":"The backend (server) code for the e-mission server","fork":false,"url":"https://api.github.com/repos/e-mission/e-mission-server","forks_url":"https://api.github.com/repos/e-mission/e-mission-server/forks","keys_url":"https://api.github.com/repos/e-mission/e-mission-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/e-mission/e-mission-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/e-mission/e-mission-server/teams","hooks_url":"https://api.github.com/repos/e-mission/e-mission-server/hooks","issue_events_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/events{/number}","events_url":"https://api.github.com/repos/e-mission/e-mission-server/events","assignees_url":"https://api.github.com/repos/e-mission/e-mission-server/assignees{/user}","branches_url":"https://api.github.com/repos/e-mission/e-mission-server/branches{/branch}","tags_url":"https://api.github.com/repos/e-mission/e-mission-server/tags","blobs_url":"https://api.github.com/repos/e-mission/e-mission-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/e-mission/e-mission-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/e-mission/e-mission-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/e-mission/e-mission-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/e-mission/e-mission-server/statuses/{sha}","languages_url":"https://api.github.com/repos/e-mission/e-mission-server/languages","stargazers_url":"https://api.github.com/repos/e-mission/e-mission-server/stargazers","contributors_url":"https://api.github.com/repos/e-mission/e-mission-server/contributors","subscribers_url":"https://api.github.com/repos/e-mission/e-mission-server/subscribers","subscription_url":"https://api.github.com/repos/e-mission/e-mission-server/subscription","commits_url":"https://api.github.com/repos/e-mission/e-mission-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/e-mission/e-mission-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/e-mission/e-mission-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/e-mission/e-mission-server/contents/{+path}","compare_url":"https://api.github.com/repos/e-mission/e-mission-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/e-mission/e-mission-server/merges","archive_url":"https://api.github.com/repos/e-mission/e-mission-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/e-mission/e-mission-server/downloads","issues_url":"https://api.github.com/repos/e-mission/e-mission-server/issues{/number}","pulls_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls{/number}","milestones_url":"https://api.github.com/repos/e-mission/e-mission-server/milestones{/number}","notifications_url":"https://api.github.com/repos/e-mission/e-mission-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/e-mission/e-mission-server/labels{/name}","releases_url":"https://api.github.com/repos/e-mission/e-mission-server/releases{/id}","deployments_url":"https://api.github.com/repos/e-mission/e-mission-server/deployments","created_at":"2014-11-07T06:39:02Z","updated_at":"2016-06-11T09:09:56Z","pushed_at":"2016-07-16T06:00:41Z","git_url":"git://github.com/e-mission/e-mission-server.git","ssh_url":"git@github.com:e-mission/e-mission-server.git","clone_url":"https://github.com/e-mission/e-mission-server.git","svn_url":"https://github.com/e-mission/e-mission-server","homepage":"https://e-mission.eecs.berkeley.edu","size":92943,"stargazers_count":2,"watchers_count":2,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":55,"forks":29,"open_issues":55,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313"},"html":{"href":"https://github.com/e-mission/e-mission-server/pull/313"},"issue":{"href":"https://api.github.com/repos/e-mission/e-mission-server/issues/313"},"comments":{"href":"https://api.github.com/repos/e-mission/e-mission-server/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/e-mission/e-mission-server/statuses/eba2eaf29de857a92632eba9c0720f68079d1cc1"}}}}
{"actor":{"display_login":"shankari"}}