{"action":"created","comment":{"url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/comments/149006218","pull_request_review_id":74331599,"id":149006218,"diff_hunk":"@@ -121,10 +121,11 @@ def initialize\n       def fetch_events(group_id:, since_at: nil, until_at: nil)\n         params = {\n           fields: %i(attending_count start_time owner),\n-          limit: 100,\n-          since: since_at,\n-          until: until_at\n-        }.compact\n+          limit: 100\n+        }.tap do |h|\n+          h[:since] = (since_at.utc + since_at.utc_offset).to_i if since_at\n+          h[:until] = (until_at.utc + until_at.utc_offset).to_i if until_at","path":"lib/statistics/client.rb","position":null,"original_position":11,"commit_id":"fe08d35da8202e8b1a775003fe28fa66cecb5b73","original_commit_id":"467a615706078d56cb45dba2dee9f73d52cdf969","user":{"login":"hanachin","id":167012,"avatar_url":"https://avatars3.githubusercontent.com/u/167012?v=4","gravatar_id":"","url":"https://api.github.com/users/hanachin","html_url":"https://github.com/hanachin","followers_url":"https://api.github.com/users/hanachin/followers","following_url":"https://api.github.com/users/hanachin/following{/other_user}","gists_url":"https://api.github.com/users/hanachin/gists{/gist_id}","starred_url":"https://api.github.com/users/hanachin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanachin/subscriptions","organizations_url":"https://api.github.com/users/hanachin/orgs","repos_url":"https://api.github.com/users/hanachin/repos","events_url":"https://api.github.com/users/hanachin/events{/privacy}","received_events_url":"https://api.github.com/users/hanachin/received_events","type":"User","site_admin":false},"body":"ここ難しいですね\r\n\r\n> 一次情報がみつからなくてちょっと真偽がはっきりしないんですが以下の記事を見つけました。\r\n\r\n「site:facebook.com timezone api」みたいな感じで検索するとPSTでつかわれてるというFacebookヘルプチームからの解答がひっかかりました。\r\n\r\n> Thanks for your question. Yes, We use UTC-8 Pacific Standard Time for all reporting. PDT and PST are interchangeable.\r\nhttps://www.facebook.com/help/audiencenetwork/community/question/?id=1949627351935296\r\n\r\nということなので、オフセット足してよいと思います。","created_at":"2017-11-06T07:17:04Z","updated_at":"2017-11-06T07:38:49Z","html_url":"https://github.com/coderdojo-japan/coderdojo.jp/pull/182#discussion_r149006218","pull_request_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/comments/149006218"},"html":{"href":"https://github.com/coderdojo-japan/coderdojo.jp/pull/182#discussion_r149006218"},"pull_request":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182"}},"in_reply_to_id":148892875},"pull_request":{"url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182","id":150623646,"html_url":"https://github.com/coderdojo-japan/coderdojo.jp/pull/182","diff_url":"https://github.com/coderdojo-japan/coderdojo.jp/pull/182.diff","patch_url":"https://github.com/coderdojo-japan/coderdojo.jp/pull/182.patch","issue_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/182","number":182,"state":"closed","locked":false,"title":"`has_one` -> `has_many` between Dojo and DojoEventService","user":{"login":"nalabjp","id":1544172,"avatar_url":"https://avatars1.githubusercontent.com/u/1544172?v=4","gravatar_id":"","url":"https://api.github.com/users/nalabjp","html_url":"https://github.com/nalabjp","followers_url":"https://api.github.com/users/nalabjp/followers","following_url":"https://api.github.com/users/nalabjp/following{/other_user}","gists_url":"https://api.github.com/users/nalabjp/gists{/gist_id}","starred_url":"https://api.github.com/users/nalabjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalabjp/subscriptions","organizations_url":"https://api.github.com/users/nalabjp/orgs","repos_url":"https://api.github.com/users/nalabjp/repos","events_url":"https://api.github.com/users/nalabjp/events{/privacy}","received_events_url":"https://api.github.com/users/nalabjp/received_events","type":"User","site_admin":false},"body":"#168 \r\n`dojo has_one dojo_event_service`を`dojo has_many dojo_evnet_services`に変更しました。","created_at":"2017-11-03T20:38:14Z","updated_at":"2017-11-06T07:38:49Z","closed_at":"2017-11-06T04:59:54Z","merged_at":"2017-11-06T04:59:54Z","merge_commit_sha":"85c1236af889926fe31e7ab092e58322deb53359","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182/commits","review_comments_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182/comments","review_comment_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/182/comments","statuses_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/statuses/fe08d35da8202e8b1a775003fe28fa66cecb5b73","head":{"label":"coderdojo-japan:has-many-dojo-event-services","ref":"has-many-dojo-event-services","sha":"fe08d35da8202e8b1a775003fe28fa66cecb5b73","user":{"login":"coderdojo-japan","id":6996353,"avatar_url":"https://avatars0.githubusercontent.com/u/6996353?v=4","gravatar_id":"","url":"https://api.github.com/users/coderdojo-japan","html_url":"https://github.com/coderdojo-japan","followers_url":"https://api.github.com/users/coderdojo-japan/followers","following_url":"https://api.github.com/users/coderdojo-japan/following{/other_user}","gists_url":"https://api.github.com/users/coderdojo-japan/gists{/gist_id}","starred_url":"https://api.github.com/users/coderdojo-japan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderdojo-japan/subscriptions","organizations_url":"https://api.github.com/users/coderdojo-japan/orgs","repos_url":"https://api.github.com/users/coderdojo-japan/repos","events_url":"https://api.github.com/users/coderdojo-japan/events{/privacy}","received_events_url":"https://api.github.com/users/coderdojo-japan/received_events","type":"Organization","site_admin":false},"repo":{"id":56760641,"name":"coderdojo.jp","full_name":"coderdojo-japan/coderdojo.jp","owner":{"login":"coderdojo-japan","id":6996353,"avatar_url":"https://avatars0.githubusercontent.com/u/6996353?v=4","gravatar_id":"","url":"https://api.github.com/users/coderdojo-japan","html_url":"https://github.com/coderdojo-japan","followers_url":"https://api.github.com/users/coderdojo-japan/followers","following_url":"https://api.github.com/users/coderdojo-japan/following{/other_user}","gists_url":"https://api.github.com/users/coderdojo-japan/gists{/gist_id}","starred_url":"https://api.github.com/users/coderdojo-japan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderdojo-japan/subscriptions","organizations_url":"https://api.github.com/users/coderdojo-japan/orgs","repos_url":"https://api.github.com/users/coderdojo-japan/repos","events_url":"https://api.github.com/users/coderdojo-japan/events{/privacy}","received_events_url":"https://api.github.com/users/coderdojo-japan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coderdojo-japan/coderdojo.jp","description":"CoderDojo Japan official website integrated with Cloud-based Rails CMS (Scrivito)","fork":false,"url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp","forks_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/forks","keys_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/teams","hooks_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/hooks","issue_events_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/events{/number}","events_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/events","assignees_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/assignees{/user}","branches_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/branches{/branch}","tags_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/tags","blobs_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/refs{/sha}","trees_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/statuses/{sha}","languages_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/languages","stargazers_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/stargazers","contributors_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/contributors","subscribers_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/subscribers","subscription_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/subscription","commits_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/commits{/sha}","git_commits_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/commits{/sha}","comments_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/comments{/number}","issue_comment_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/comments{/number}","contents_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/contents/{+path}","compare_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/merges","archive_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/downloads","issues_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues{/number}","pulls_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls{/number}","milestones_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/milestones{/number}","notifications_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/labels{/name}","releases_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/releases{/id}","deployments_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/deployments","created_at":"2016-04-21T09:26:11Z","updated_at":"2017-11-01T15:35:00Z","pushed_at":"2017-11-06T05:16:33Z","git_url":"git://github.com/coderdojo-japan/coderdojo.jp.git","ssh_url":"git@github.com:coderdojo-japan/coderdojo.jp.git","clone_url":"https://github.com/coderdojo-japan/coderdojo.jp.git","svn_url":"https://github.com/coderdojo-japan/coderdojo.jp","homepage":"https://coderdojo.jp/","size":9834,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":35,"forks":26,"open_issues":35,"watchers":15,"default_branch":"master"}},"base":{"label":"coderdojo-japan:master","ref":"master","sha":"ad0cbdb90cf748eea88b1ebafbcfe2168d8297d5","user":{"login":"coderdojo-japan","id":6996353,"avatar_url":"https://avatars0.githubusercontent.com/u/6996353?v=4","gravatar_id":"","url":"https://api.github.com/users/coderdojo-japan","html_url":"https://github.com/coderdojo-japan","followers_url":"https://api.github.com/users/coderdojo-japan/followers","following_url":"https://api.github.com/users/coderdojo-japan/following{/other_user}","gists_url":"https://api.github.com/users/coderdojo-japan/gists{/gist_id}","starred_url":"https://api.github.com/users/coderdojo-japan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderdojo-japan/subscriptions","organizations_url":"https://api.github.com/users/coderdojo-japan/orgs","repos_url":"https://api.github.com/users/coderdojo-japan/repos","events_url":"https://api.github.com/users/coderdojo-japan/events{/privacy}","received_events_url":"https://api.github.com/users/coderdojo-japan/received_events","type":"Organization","site_admin":false},"repo":{"id":56760641,"name":"coderdojo.jp","full_name":"coderdojo-japan/coderdojo.jp","owner":{"login":"coderdojo-japan","id":6996353,"avatar_url":"https://avatars0.githubusercontent.com/u/6996353?v=4","gravatar_id":"","url":"https://api.github.com/users/coderdojo-japan","html_url":"https://github.com/coderdojo-japan","followers_url":"https://api.github.com/users/coderdojo-japan/followers","following_url":"https://api.github.com/users/coderdojo-japan/following{/other_user}","gists_url":"https://api.github.com/users/coderdojo-japan/gists{/gist_id}","starred_url":"https://api.github.com/users/coderdojo-japan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderdojo-japan/subscriptions","organizations_url":"https://api.github.com/users/coderdojo-japan/orgs","repos_url":"https://api.github.com/users/coderdojo-japan/repos","events_url":"https://api.github.com/users/coderdojo-japan/events{/privacy}","received_events_url":"https://api.github.com/users/coderdojo-japan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coderdojo-japan/coderdojo.jp","description":"CoderDojo Japan official website integrated with Cloud-based Rails CMS (Scrivito)","fork":false,"url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp","forks_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/forks","keys_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/teams","hooks_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/hooks","issue_events_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/events{/number}","events_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/events","assignees_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/assignees{/user}","branches_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/branches{/branch}","tags_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/tags","blobs_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/refs{/sha}","trees_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/statuses/{sha}","languages_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/languages","stargazers_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/stargazers","contributors_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/contributors","subscribers_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/subscribers","subscription_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/subscription","commits_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/commits{/sha}","git_commits_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/git/commits{/sha}","comments_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/comments{/number}","issue_comment_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/comments{/number}","contents_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/contents/{+path}","compare_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/merges","archive_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/downloads","issues_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues{/number}","pulls_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls{/number}","milestones_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/milestones{/number}","notifications_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/labels{/name}","releases_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/releases{/id}","deployments_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/deployments","created_at":"2016-04-21T09:26:11Z","updated_at":"2017-11-01T15:35:00Z","pushed_at":"2017-11-06T05:16:33Z","git_url":"git://github.com/coderdojo-japan/coderdojo.jp.git","ssh_url":"git@github.com:coderdojo-japan/coderdojo.jp.git","clone_url":"https://github.com/coderdojo-japan/coderdojo.jp.git","svn_url":"https://github.com/coderdojo-japan/coderdojo.jp","homepage":"https://coderdojo.jp/","size":9834,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":35,"forks":26,"open_issues":35,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182"},"html":{"href":"https://github.com/coderdojo-japan/coderdojo.jp/pull/182"},"issue":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/182"},"comments":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/statuses/fe08d35da8202e8b1a775003fe28fa66cecb5b73"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hanachin"}}