{"action":"created","comment":{"url":"https://api.github.com/repos/binary-com/SmartCharts/pulls/comments/220410614","pull_request_review_id":158812218,"id":220410614,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDQxMDYxNA==","diff_hunk":"@@ -0,0 +1,60 @@\n+import { getUTCEpoch, getLocalDate, getUTCDate } from './index';\n+\n+class ServerTime {\n+    clockStarted = false;\n+\n+    constructor(api) {\n+        this._api = api;\n+        this.init();\n+    }\n+\n+    init() {\n+        if (!this.clockStarted) {\n+            clearInterval(this.getTimeInterval);\n+            this.requestTime();\n+            this.getTimeInterval = setInterval(this.requestTime.bind(this), 60000);","path":"src/utils/ServerTime.js","position":15,"original_position":15,"commit_id":"807ac8ea9a553ce25d08fe8e81d0d24180e04f31","original_commit_id":"807ac8ea9a553ce25d08fe8e81d0d24180e04f31","user":{"login":"brucebinary","id":32833572,"node_id":"MDQ6VXNlcjMyODMzNTcy","avatar_url":"https://avatars0.githubusercontent.com/u/32833572?v=4","gravatar_id":"","url":"https://api.github.com/users/brucebinary","html_url":"https://github.com/brucebinary","followers_url":"https://api.github.com/users/brucebinary/followers","following_url":"https://api.github.com/users/brucebinary/following{/other_user}","gists_url":"https://api.github.com/users/brucebinary/gists{/gist_id}","starred_url":"https://api.github.com/users/brucebinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucebinary/subscriptions","organizations_url":"https://api.github.com/users/brucebinary/orgs","repos_url":"https://api.github.com/users/brucebinary/repos","events_url":"https://api.github.com/users/brucebinary/events{/privacy}","received_events_url":"https://api.github.com/users/brucebinary/received_events","type":"User","site_admin":false},"body":"why are you updating every 60 seconds? Binary-static updates every 30 seconds.","created_at":"2018-09-26T02:29:34Z","updated_at":"2018-09-26T02:59:21Z","html_url":"https://github.com/binary-com/SmartCharts/pull/526#discussion_r220410614","pull_request_url":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/binary-com/SmartCharts/pulls/comments/220410614"},"html":{"href":"https://github.com/binary-com/SmartCharts/pull/526#discussion_r220410614"},"pull_request":{"href":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526"}}},"pull_request":{"url":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526","id":216202748,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MjAyNzQ4","html_url":"https://github.com/binary-com/SmartCharts/pull/526","diff_url":"https://github.com/binary-com/SmartCharts/pull/526.diff","patch_url":"https://github.com/binary-com/SmartCharts/pull/526.patch","issue_url":"https://api.github.com/repos/binary-com/SmartCharts/issues/526","number":526,"state":"open","locked":false,"title":"Use server time instead of local time","user":{"login":"MahboobehMohammadi","id":3080372,"node_id":"MDQ6VXNlcjMwODAzNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/3080372?v=4","gravatar_id":"","url":"https://api.github.com/users/MahboobehMohammadi","html_url":"https://github.com/MahboobehMohammadi","followers_url":"https://api.github.com/users/MahboobehMohammadi/followers","following_url":"https://api.github.com/users/MahboobehMohammadi/following{/other_user}","gists_url":"https://api.github.com/users/MahboobehMohammadi/gists{/gist_id}","starred_url":"https://api.github.com/users/MahboobehMohammadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MahboobehMohammadi/subscriptions","organizations_url":"https://api.github.com/users/MahboobehMohammadi/orgs","repos_url":"https://api.github.com/users/MahboobehMohammadi/repos","events_url":"https://api.github.com/users/MahboobehMohammadi/events{/privacy}","received_events_url":"https://api.github.com/users/MahboobehMohammadi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-18T07:03:47Z","updated_at":"2018-09-26T02:59:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"898df527f2268b6d8333badc0ccf4b9227b9e9d9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526/commits","review_comments_url":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526/comments","review_comment_url":"https://api.github.com/repos/binary-com/SmartCharts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/binary-com/SmartCharts/issues/526/comments","statuses_url":"https://api.github.com/repos/binary-com/SmartCharts/statuses/807ac8ea9a553ce25d08fe8e81d0d24180e04f31","head":{"label":"MahboobehMohammadi:servertime","ref":"servertime","sha":"807ac8ea9a553ce25d08fe8e81d0d24180e04f31","user":{"login":"MahboobehMohammadi","id":3080372,"node_id":"MDQ6VXNlcjMwODAzNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/3080372?v=4","gravatar_id":"","url":"https://api.github.com/users/MahboobehMohammadi","html_url":"https://github.com/MahboobehMohammadi","followers_url":"https://api.github.com/users/MahboobehMohammadi/followers","following_url":"https://api.github.com/users/MahboobehMohammadi/following{/other_user}","gists_url":"https://api.github.com/users/MahboobehMohammadi/gists{/gist_id}","starred_url":"https://api.github.com/users/MahboobehMohammadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MahboobehMohammadi/subscriptions","organizations_url":"https://api.github.com/users/MahboobehMohammadi/orgs","repos_url":"https://api.github.com/users/MahboobehMohammadi/repos","events_url":"https://api.github.com/users/MahboobehMohammadi/events{/privacy}","received_events_url":"https://api.github.com/users/MahboobehMohammadi/received_events","type":"User","site_admin":false},"repo":{"id":130092412,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAwOTI0MTI=","name":"SmartCharts","full_name":"MahboobehMohammadi/SmartCharts","private":false,"owner":{"login":"MahboobehMohammadi","id":3080372,"node_id":"MDQ6VXNlcjMwODAzNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/3080372?v=4","gravatar_id":"","url":"https://api.github.com/users/MahboobehMohammadi","html_url":"https://github.com/MahboobehMohammadi","followers_url":"https://api.github.com/users/MahboobehMohammadi/followers","following_url":"https://api.github.com/users/MahboobehMohammadi/following{/other_user}","gists_url":"https://api.github.com/users/MahboobehMohammadi/gists{/gist_id}","starred_url":"https://api.github.com/users/MahboobehMohammadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MahboobehMohammadi/subscriptions","organizations_url":"https://api.github.com/users/MahboobehMohammadi/orgs","repos_url":"https://api.github.com/users/MahboobehMohammadi/repos","events_url":"https://api.github.com/users/MahboobehMohammadi/events{/privacy}","received_events_url":"https://api.github.com/users/MahboobehMohammadi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MahboobehMohammadi/SmartCharts","description":null,"fork":true,"url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts","forks_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/forks","keys_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/teams","hooks_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/hooks","issue_events_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/issues/events{/number}","events_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/events","assignees_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/assignees{/user}","branches_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/branches{/branch}","tags_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/tags","blobs_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/git/refs{/sha}","trees_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/statuses/{sha}","languages_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/languages","stargazers_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/stargazers","contributors_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/contributors","subscribers_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/subscribers","subscription_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/subscription","commits_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/commits{/sha}","git_commits_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/git/commits{/sha}","comments_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/comments{/number}","issue_comment_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/issues/comments{/number}","contents_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/contents/{+path}","compare_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/merges","archive_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/downloads","issues_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/issues{/number}","pulls_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/pulls{/number}","milestones_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/milestones{/number}","notifications_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/labels{/name}","releases_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/releases{/id}","deployments_url":"https://api.github.com/repos/MahboobehMohammadi/SmartCharts/deployments","created_at":"2018-04-18T16:33:54Z","updated_at":"2018-04-18T16:33:56Z","pushed_at":"2018-09-25T06:12:33Z","git_url":"git://github.com/MahboobehMohammadi/SmartCharts.git","ssh_url":"git@github.com:MahboobehMohammadi/SmartCharts.git","clone_url":"https://github.com/MahboobehMohammadi/SmartCharts.git","svn_url":"https://github.com/MahboobehMohammadi/SmartCharts","homepage":null,"size":62193,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"binary-com:dev","ref":"dev","sha":"031a23948853f7c6790311ea5918a32c2368d68d","user":{"login":"binary-com","id":7437559,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0Mzc1NTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7437559?v=4","gravatar_id":"","url":"https://api.github.com/users/binary-com","html_url":"https://github.com/binary-com","followers_url":"https://api.github.com/users/binary-com/followers","following_url":"https://api.github.com/users/binary-com/following{/other_user}","gists_url":"https://api.github.com/users/binary-com/gists{/gist_id}","starred_url":"https://api.github.com/users/binary-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary-com/subscriptions","organizations_url":"https://api.github.com/users/binary-com/orgs","repos_url":"https://api.github.com/users/binary-com/repos","events_url":"https://api.github.com/users/binary-com/events{/privacy}","received_events_url":"https://api.github.com/users/binary-com/received_events","type":"Organization","site_admin":false},"repo":{"id":115597557,"node_id":"MDEwOlJlcG9zaXRvcnkxMTU1OTc1NTc=","name":"SmartCharts","full_name":"binary-com/SmartCharts","private":false,"owner":{"login":"binary-com","id":7437559,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0Mzc1NTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7437559?v=4","gravatar_id":"","url":"https://api.github.com/users/binary-com","html_url":"https://github.com/binary-com","followers_url":"https://api.github.com/users/binary-com/followers","following_url":"https://api.github.com/users/binary-com/following{/other_user}","gists_url":"https://api.github.com/users/binary-com/gists{/gist_id}","starred_url":"https://api.github.com/users/binary-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary-com/subscriptions","organizations_url":"https://api.github.com/users/binary-com/orgs","repos_url":"https://api.github.com/users/binary-com/repos","events_url":"https://api.github.com/users/binary-com/events{/privacy}","received_events_url":"https://api.github.com/users/binary-com/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/binary-com/SmartCharts","description":null,"fork":false,"url":"https://api.github.com/repos/binary-com/SmartCharts","forks_url":"https://api.github.com/repos/binary-com/SmartCharts/forks","keys_url":"https://api.github.com/repos/binary-com/SmartCharts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binary-com/SmartCharts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binary-com/SmartCharts/teams","hooks_url":"https://api.github.com/repos/binary-com/SmartCharts/hooks","issue_events_url":"https://api.github.com/repos/binary-com/SmartCharts/issues/events{/number}","events_url":"https://api.github.com/repos/binary-com/SmartCharts/events","assignees_url":"https://api.github.com/repos/binary-com/SmartCharts/assignees{/user}","branches_url":"https://api.github.com/repos/binary-com/SmartCharts/branches{/branch}","tags_url":"https://api.github.com/repos/binary-com/SmartCharts/tags","blobs_url":"https://api.github.com/repos/binary-com/SmartCharts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binary-com/SmartCharts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binary-com/SmartCharts/git/refs{/sha}","trees_url":"https://api.github.com/repos/binary-com/SmartCharts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binary-com/SmartCharts/statuses/{sha}","languages_url":"https://api.github.com/repos/binary-com/SmartCharts/languages","stargazers_url":"https://api.github.com/repos/binary-com/SmartCharts/stargazers","contributors_url":"https://api.github.com/repos/binary-com/SmartCharts/contributors","subscribers_url":"https://api.github.com/repos/binary-com/SmartCharts/subscribers","subscription_url":"https://api.github.com/repos/binary-com/SmartCharts/subscription","commits_url":"https://api.github.com/repos/binary-com/SmartCharts/commits{/sha}","git_commits_url":"https://api.github.com/repos/binary-com/SmartCharts/git/commits{/sha}","comments_url":"https://api.github.com/repos/binary-com/SmartCharts/comments{/number}","issue_comment_url":"https://api.github.com/repos/binary-com/SmartCharts/issues/comments{/number}","contents_url":"https://api.github.com/repos/binary-com/SmartCharts/contents/{+path}","compare_url":"https://api.github.com/repos/binary-com/SmartCharts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binary-com/SmartCharts/merges","archive_url":"https://api.github.com/repos/binary-com/SmartCharts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binary-com/SmartCharts/downloads","issues_url":"https://api.github.com/repos/binary-com/SmartCharts/issues{/number}","pulls_url":"https://api.github.com/repos/binary-com/SmartCharts/pulls{/number}","milestones_url":"https://api.github.com/repos/binary-com/SmartCharts/milestones{/number}","notifications_url":"https://api.github.com/repos/binary-com/SmartCharts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binary-com/SmartCharts/labels{/name}","releases_url":"https://api.github.com/repos/binary-com/SmartCharts/releases{/id}","deployments_url":"https://api.github.com/repos/binary-com/SmartCharts/deployments","created_at":"2017-12-28T07:28:49Z","updated_at":"2018-09-25T09:22:19Z","pushed_at":"2018-09-26T02:36:15Z","git_url":"git://github.com/binary-com/SmartCharts.git","ssh_url":"git@github.com:binary-com/SmartCharts.git","clone_url":"https://github.com/binary-com/SmartCharts.git","svn_url":"https://github.com/binary-com/SmartCharts","homepage":null,"size":63230,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":10,"open_issues":10,"watchers":6,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526"},"html":{"href":"https://github.com/binary-com/SmartCharts/pull/526"},"issue":{"href":"https://api.github.com/repos/binary-com/SmartCharts/issues/526"},"comments":{"href":"https://api.github.com/repos/binary-com/SmartCharts/issues/526/comments"},"review_comments":{"href":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526/comments"},"review_comment":{"href":"https://api.github.com/repos/binary-com/SmartCharts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/binary-com/SmartCharts/pulls/526/commits"},"statuses":{"href":"https://api.github.com/repos/binary-com/SmartCharts/statuses/807ac8ea9a553ce25d08fe8e81d0d24180e04f31"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"brucebinary"}}