{"action":"created","comment":{"url":"https://api.github.com/repos/amcharts/tools/pulls/comments/81079250","pull_request_review_id":2084988,"id":81079250,"diff_hunk":"@@ -128,13 +128,19 @@ AmCharts.autoGuidesProcess = function( chart, axis, dataProvider, categoryField\n     /**\n      * Populate days\n      */\n-    if ( config.days.indexOf( date.getDay() ) !== -1 ) {\n+    if ( config.days.indexOf( AmCharts.useUTC ? date.getUTCDay() : date.getDay() ) !== -1 ) {\n \n       // calculate beginning and end of day\n-      var start = new Date( date );\n-      start.setHours( 0, 0, 0, 0 );\n-      var end = new Date( start );\n-      end.setHours( 23, 59, 59, 999 );\n+      if(AmCharts.useUTC) {","path":"autoGuides/autoGuides.js","position":12,"original_position":12,"commit_id":"243cfe876c93452b8a3202a010907bf183397ead","original_commit_id":"243cfe876c93452b8a3202a010907bf183397ead","user":{"login":"Pauan","id":97238,"avatar_url":"https://avatars.githubusercontent.com/u/97238?v=3","gravatar_id":"","url":"https://api.github.com/users/Pauan","html_url":"https://github.com/Pauan","followers_url":"https://api.github.com/users/Pauan/followers","following_url":"https://api.github.com/users/Pauan/following{/other_user}","gists_url":"https://api.github.com/users/Pauan/gists{/gist_id}","starred_url":"https://api.github.com/users/Pauan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pauan/subscriptions","organizations_url":"https://api.github.com/users/Pauan/orgs","repos_url":"https://api.github.com/users/Pauan/repos","events_url":"https://api.github.com/users/Pauan/events{/privacy}","received_events_url":"https://api.github.com/users/Pauan/received_events","type":"User","site_admin":false},"body":"Please put spaces around the `(` and `)`","created_at":"2016-09-29T07:33:55Z","updated_at":"2016-09-29T07:36:22Z","html_url":"https://github.com/amcharts/tools/pull/13#discussion_r81079250","pull_request_url":"https://api.github.com/repos/amcharts/tools/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/amcharts/tools/pulls/comments/81079250"},"html":{"href":"https://github.com/amcharts/tools/pull/13#discussion_r81079250"},"pull_request":{"href":"https://api.github.com/repos/amcharts/tools/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/amcharts/tools/pulls/13","id":87121850,"html_url":"https://github.com/amcharts/tools/pull/13","diff_url":"https://github.com/amcharts/tools/pull/13.diff","patch_url":"https://github.com/amcharts/tools/pull/13.patch","issue_url":"https://api.github.com/repos/amcharts/tools/issues/13","number":13,"state":"open","locked":false,"title":"adding AmCharts.useUTC support","user":{"login":"va2dos","id":1014809,"avatar_url":"https://avatars.githubusercontent.com/u/1014809?v=3","gravatar_id":"","url":"https://api.github.com/users/va2dos","html_url":"https://github.com/va2dos","followers_url":"https://api.github.com/users/va2dos/followers","following_url":"https://api.github.com/users/va2dos/following{/other_user}","gists_url":"https://api.github.com/users/va2dos/gists{/gist_id}","starred_url":"https://api.github.com/users/va2dos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/va2dos/subscriptions","organizations_url":"https://api.github.com/users/va2dos/orgs","repos_url":"https://api.github.com/users/va2dos/repos","events_url":"https://api.github.com/users/va2dos/events{/privacy}","received_events_url":"https://api.github.com/users/va2dos/received_events","type":"User","site_admin":false},"body":"This patch will add support for AmCharts.useUTC set to true and create guide over UTC dates and not local tz.","created_at":"2016-09-28T13:40:08Z","updated_at":"2016-09-29T07:36:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1404f8922b93889977b42f88b51e902316f596c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/amcharts/tools/pulls/13/commits","review_comments_url":"https://api.github.com/repos/amcharts/tools/pulls/13/comments","review_comment_url":"https://api.github.com/repos/amcharts/tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amcharts/tools/issues/13/comments","statuses_url":"https://api.github.com/repos/amcharts/tools/statuses/243cfe876c93452b8a3202a010907bf183397ead","head":{"label":"va2dos:patch-1","ref":"patch-1","sha":"243cfe876c93452b8a3202a010907bf183397ead","user":{"login":"va2dos","id":1014809,"avatar_url":"https://avatars.githubusercontent.com/u/1014809?v=3","gravatar_id":"","url":"https://api.github.com/users/va2dos","html_url":"https://github.com/va2dos","followers_url":"https://api.github.com/users/va2dos/followers","following_url":"https://api.github.com/users/va2dos/following{/other_user}","gists_url":"https://api.github.com/users/va2dos/gists{/gist_id}","starred_url":"https://api.github.com/users/va2dos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/va2dos/subscriptions","organizations_url":"https://api.github.com/users/va2dos/orgs","repos_url":"https://api.github.com/users/va2dos/repos","events_url":"https://api.github.com/users/va2dos/events{/privacy}","received_events_url":"https://api.github.com/users/va2dos/received_events","type":"User","site_admin":false},"repo":{"id":69464435,"name":"tools","full_name":"va2dos/tools","owner":{"login":"va2dos","id":1014809,"avatar_url":"https://avatars.githubusercontent.com/u/1014809?v=3","gravatar_id":"","url":"https://api.github.com/users/va2dos","html_url":"https://github.com/va2dos","followers_url":"https://api.github.com/users/va2dos/followers","following_url":"https://api.github.com/users/va2dos/following{/other_user}","gists_url":"https://api.github.com/users/va2dos/gists{/gist_id}","starred_url":"https://api.github.com/users/va2dos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/va2dos/subscriptions","organizations_url":"https://api.github.com/users/va2dos/orgs","repos_url":"https://api.github.com/users/va2dos/repos","events_url":"https://api.github.com/users/va2dos/events{/privacy}","received_events_url":"https://api.github.com/users/va2dos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/va2dos/tools","description":"A collection of amCharts-related plugins and utilities","fork":true,"url":"https://api.github.com/repos/va2dos/tools","forks_url":"https://api.github.com/repos/va2dos/tools/forks","keys_url":"https://api.github.com/repos/va2dos/tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/va2dos/tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/va2dos/tools/teams","hooks_url":"https://api.github.com/repos/va2dos/tools/hooks","issue_events_url":"https://api.github.com/repos/va2dos/tools/issues/events{/number}","events_url":"https://api.github.com/repos/va2dos/tools/events","assignees_url":"https://api.github.com/repos/va2dos/tools/assignees{/user}","branches_url":"https://api.github.com/repos/va2dos/tools/branches{/branch}","tags_url":"https://api.github.com/repos/va2dos/tools/tags","blobs_url":"https://api.github.com/repos/va2dos/tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/va2dos/tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/va2dos/tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/va2dos/tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/va2dos/tools/statuses/{sha}","languages_url":"https://api.github.com/repos/va2dos/tools/languages","stargazers_url":"https://api.github.com/repos/va2dos/tools/stargazers","contributors_url":"https://api.github.com/repos/va2dos/tools/contributors","subscribers_url":"https://api.github.com/repos/va2dos/tools/subscribers","subscription_url":"https://api.github.com/repos/va2dos/tools/subscription","commits_url":"https://api.github.com/repos/va2dos/tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/va2dos/tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/va2dos/tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/va2dos/tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/va2dos/tools/contents/{+path}","compare_url":"https://api.github.com/repos/va2dos/tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/va2dos/tools/merges","archive_url":"https://api.github.com/repos/va2dos/tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/va2dos/tools/downloads","issues_url":"https://api.github.com/repos/va2dos/tools/issues{/number}","pulls_url":"https://api.github.com/repos/va2dos/tools/pulls{/number}","milestones_url":"https://api.github.com/repos/va2dos/tools/milestones{/number}","notifications_url":"https://api.github.com/repos/va2dos/tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/va2dos/tools/labels{/name}","releases_url":"https://api.github.com/repos/va2dos/tools/releases{/id}","deployments_url":"https://api.github.com/repos/va2dos/tools/deployments","created_at":"2016-09-28T13:10:32Z","updated_at":"2016-09-28T13:10:33Z","pushed_at":"2016-09-28T13:35:59Z","git_url":"git://github.com/va2dos/tools.git","ssh_url":"git@github.com:va2dos/tools.git","clone_url":"https://github.com/va2dos/tools.git","svn_url":"https://github.com/va2dos/tools","homepage":null,"size":127,"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":"amcharts:master","ref":"master","sha":"55dcee7425f1b54b0e7a857236d1f5436b9f7002","user":{"login":"amcharts","id":1116146,"avatar_url":"https://avatars.githubusercontent.com/u/1116146?v=3","gravatar_id":"","url":"https://api.github.com/users/amcharts","html_url":"https://github.com/amcharts","followers_url":"https://api.github.com/users/amcharts/followers","following_url":"https://api.github.com/users/amcharts/following{/other_user}","gists_url":"https://api.github.com/users/amcharts/gists{/gist_id}","starred_url":"https://api.github.com/users/amcharts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcharts/subscriptions","organizations_url":"https://api.github.com/users/amcharts/orgs","repos_url":"https://api.github.com/users/amcharts/repos","events_url":"https://api.github.com/users/amcharts/events{/privacy}","received_events_url":"https://api.github.com/users/amcharts/received_events","type":"User","site_admin":false},"repo":{"id":40310389,"name":"tools","full_name":"amcharts/tools","owner":{"login":"amcharts","id":1116146,"avatar_url":"https://avatars.githubusercontent.com/u/1116146?v=3","gravatar_id":"","url":"https://api.github.com/users/amcharts","html_url":"https://github.com/amcharts","followers_url":"https://api.github.com/users/amcharts/followers","following_url":"https://api.github.com/users/amcharts/following{/other_user}","gists_url":"https://api.github.com/users/amcharts/gists{/gist_id}","starred_url":"https://api.github.com/users/amcharts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcharts/subscriptions","organizations_url":"https://api.github.com/users/amcharts/orgs","repos_url":"https://api.github.com/users/amcharts/repos","events_url":"https://api.github.com/users/amcharts/events{/privacy}","received_events_url":"https://api.github.com/users/amcharts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amcharts/tools","description":"A collection of amCharts-related plugins and utilities","fork":false,"url":"https://api.github.com/repos/amcharts/tools","forks_url":"https://api.github.com/repos/amcharts/tools/forks","keys_url":"https://api.github.com/repos/amcharts/tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amcharts/tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amcharts/tools/teams","hooks_url":"https://api.github.com/repos/amcharts/tools/hooks","issue_events_url":"https://api.github.com/repos/amcharts/tools/issues/events{/number}","events_url":"https://api.github.com/repos/amcharts/tools/events","assignees_url":"https://api.github.com/repos/amcharts/tools/assignees{/user}","branches_url":"https://api.github.com/repos/amcharts/tools/branches{/branch}","tags_url":"https://api.github.com/repos/amcharts/tools/tags","blobs_url":"https://api.github.com/repos/amcharts/tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amcharts/tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amcharts/tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/amcharts/tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amcharts/tools/statuses/{sha}","languages_url":"https://api.github.com/repos/amcharts/tools/languages","stargazers_url":"https://api.github.com/repos/amcharts/tools/stargazers","contributors_url":"https://api.github.com/repos/amcharts/tools/contributors","subscribers_url":"https://api.github.com/repos/amcharts/tools/subscribers","subscription_url":"https://api.github.com/repos/amcharts/tools/subscription","commits_url":"https://api.github.com/repos/amcharts/tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/amcharts/tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/amcharts/tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/amcharts/tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/amcharts/tools/contents/{+path}","compare_url":"https://api.github.com/repos/amcharts/tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amcharts/tools/merges","archive_url":"https://api.github.com/repos/amcharts/tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amcharts/tools/downloads","issues_url":"https://api.github.com/repos/amcharts/tools/issues{/number}","pulls_url":"https://api.github.com/repos/amcharts/tools/pulls{/number}","milestones_url":"https://api.github.com/repos/amcharts/tools/milestones{/number}","notifications_url":"https://api.github.com/repos/amcharts/tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amcharts/tools/labels{/name}","releases_url":"https://api.github.com/repos/amcharts/tools/releases{/id}","deployments_url":"https://api.github.com/repos/amcharts/tools/deployments","created_at":"2015-08-06T14:50:39Z","updated_at":"2016-09-28T13:43:21Z","pushed_at":"2016-09-28T13:40:08Z","git_url":"git://github.com/amcharts/tools.git","ssh_url":"git@github.com:amcharts/tools.git","clone_url":"https://github.com/amcharts/tools.git","svn_url":"https://github.com/amcharts/tools","homepage":null,"size":129,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amcharts/tools/pulls/13"},"html":{"href":"https://github.com/amcharts/tools/pull/13"},"issue":{"href":"https://api.github.com/repos/amcharts/tools/issues/13"},"comments":{"href":"https://api.github.com/repos/amcharts/tools/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/amcharts/tools/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/amcharts/tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amcharts/tools/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/amcharts/tools/statuses/243cfe876c93452b8a3202a010907bf183397ead"}}}}
{"actor":{"display_login":"Pauan"}}