{"action":"opened","number":4705,"pull_request":{"url":"https://api.github.com/repos/elastic/kibana/pulls/4705","id":42756810,"html_url":"https://github.com/elastic/kibana/pull/4705","diff_url":"https://github.com/elastic/kibana/pull/4705.diff","patch_url":"https://github.com/elastic/kibana/pull/4705.patch","issue_url":"https://api.github.com/repos/elastic/kibana/issues/4705","number":4705,"state":"open","locked":false,"title":"Add Olson timezone detection. Closes #3694","user":{"login":"rashidkpc","id":1250387,"avatar_url":"https://avatars.githubusercontent.com/u/1250387?v=3","gravatar_id":"","url":"https://api.github.com/users/rashidkpc","html_url":"https://github.com/rashidkpc","followers_url":"https://api.github.com/users/rashidkpc/followers","following_url":"https://api.github.com/users/rashidkpc/following{/other_user}","gists_url":"https://api.github.com/users/rashidkpc/gists{/gist_id}","starred_url":"https://api.github.com/users/rashidkpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashidkpc/subscriptions","organizations_url":"https://api.github.com/users/rashidkpc/orgs","repos_url":"https://api.github.com/users/rashidkpc/repos","events_url":"https://api.github.com/users/rashidkpc/events{/privacy}","received_events_url":"https://api.github.com/users/rashidkpc/received_events","type":"User","site_admin":false},"body":"This fixes the problem of DST causing the time on a daily interval from showing as 23:00 instead of 00:00 during standard time (vs daylight savings). It also fixes the issue of the area chart getting dragged to 0 when DST switches over \r\n\r\n- Adds jsTimeZoneDetect\r\n- Sends the Olson timezone ID instead of the offset, eg America/New_York instead of -04:00\r\n- Falls back to offset if it cant detect the timezone\r\n- I intentionally did not make the zone configurable as implementing proper timezone support is a bigger project.\r\n\r\nBefore:\r\n![screen shot 2015-08-18 at 3 22 09 pm](https://cloud.githubusercontent.com/assets/1250387/9344454/94a19c16-45bd-11e5-925d-5bd9c801204f.png)\r\n\r\nAfter:\r\n![screen shot 2015-08-18 at 3 22 39 pm](https://cloud.githubusercontent.com/assets/1250387/9344456/99622658-45bd-11e5-8ab1-4b54b163888d.png)\r\n","created_at":"2015-08-18T22:28:20Z","updated_at":"2015-08-18T22:28:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elastic/kibana/pulls/4705/commits","review_comments_url":"https://api.github.com/repos/elastic/kibana/pulls/4705/comments","review_comment_url":"https://api.github.com/repos/elastic/kibana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/4705/comments","statuses_url":"https://api.github.com/repos/elastic/kibana/statuses/19ce1863a4bedce6b0c825948bf819cd0ed9acca","head":{"label":"rashidkpc:fix/tz-detect","ref":"fix/tz-detect","sha":"19ce1863a4bedce6b0c825948bf819cd0ed9acca","user":{"login":"rashidkpc","id":1250387,"avatar_url":"https://avatars.githubusercontent.com/u/1250387?v=3","gravatar_id":"","url":"https://api.github.com/users/rashidkpc","html_url":"https://github.com/rashidkpc","followers_url":"https://api.github.com/users/rashidkpc/followers","following_url":"https://api.github.com/users/rashidkpc/following{/other_user}","gists_url":"https://api.github.com/users/rashidkpc/gists{/gist_id}","starred_url":"https://api.github.com/users/rashidkpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashidkpc/subscriptions","organizations_url":"https://api.github.com/users/rashidkpc/orgs","repos_url":"https://api.github.com/users/rashidkpc/repos","events_url":"https://api.github.com/users/rashidkpc/events{/privacy}","received_events_url":"https://api.github.com/users/rashidkpc/received_events","type":"User","site_admin":false},"repo":{"id":9221861,"name":"kibana","full_name":"rashidkpc/kibana","owner":{"login":"rashidkpc","id":1250387,"avatar_url":"https://avatars.githubusercontent.com/u/1250387?v=3","gravatar_id":"","url":"https://api.github.com/users/rashidkpc","html_url":"https://github.com/rashidkpc","followers_url":"https://api.github.com/users/rashidkpc/followers","following_url":"https://api.github.com/users/rashidkpc/following{/other_user}","gists_url":"https://api.github.com/users/rashidkpc/gists{/gist_id}","starred_url":"https://api.github.com/users/rashidkpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashidkpc/subscriptions","organizations_url":"https://api.github.com/users/rashidkpc/orgs","repos_url":"https://api.github.com/users/rashidkpc/repos","events_url":"https://api.github.com/users/rashidkpc/events{/privacy}","received_events_url":"https://api.github.com/users/rashidkpc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rashidkpc/kibana","description":"The good stuff","fork":true,"url":"https://api.github.com/repos/rashidkpc/kibana","forks_url":"https://api.github.com/repos/rashidkpc/kibana/forks","keys_url":"https://api.github.com/repos/rashidkpc/kibana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rashidkpc/kibana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rashidkpc/kibana/teams","hooks_url":"https://api.github.com/repos/rashidkpc/kibana/hooks","issue_events_url":"https://api.github.com/repos/rashidkpc/kibana/issues/events{/number}","events_url":"https://api.github.com/repos/rashidkpc/kibana/events","assignees_url":"https://api.github.com/repos/rashidkpc/kibana/assignees{/user}","branches_url":"https://api.github.com/repos/rashidkpc/kibana/branches{/branch}","tags_url":"https://api.github.com/repos/rashidkpc/kibana/tags","blobs_url":"https://api.github.com/repos/rashidkpc/kibana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rashidkpc/kibana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rashidkpc/kibana/git/refs{/sha}","trees_url":"https://api.github.com/repos/rashidkpc/kibana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rashidkpc/kibana/statuses/{sha}","languages_url":"https://api.github.com/repos/rashidkpc/kibana/languages","stargazers_url":"https://api.github.com/repos/rashidkpc/kibana/stargazers","contributors_url":"https://api.github.com/repos/rashidkpc/kibana/contributors","subscribers_url":"https://api.github.com/repos/rashidkpc/kibana/subscribers","subscription_url":"https://api.github.com/repos/rashidkpc/kibana/subscription","commits_url":"https://api.github.com/repos/rashidkpc/kibana/commits{/sha}","git_commits_url":"https://api.github.com/repos/rashidkpc/kibana/git/commits{/sha}","comments_url":"https://api.github.com/repos/rashidkpc/kibana/comments{/number}","issue_comment_url":"https://api.github.com/repos/rashidkpc/kibana/issues/comments{/number}","contents_url":"https://api.github.com/repos/rashidkpc/kibana/contents/{+path}","compare_url":"https://api.github.com/repos/rashidkpc/kibana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rashidkpc/kibana/merges","archive_url":"https://api.github.com/repos/rashidkpc/kibana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rashidkpc/kibana/downloads","issues_url":"https://api.github.com/repos/rashidkpc/kibana/issues{/number}","pulls_url":"https://api.github.com/repos/rashidkpc/kibana/pulls{/number}","milestones_url":"https://api.github.com/repos/rashidkpc/kibana/milestones{/number}","notifications_url":"https://api.github.com/repos/rashidkpc/kibana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rashidkpc/kibana/labels{/name}","releases_url":"https://api.github.com/repos/rashidkpc/kibana/releases{/id}","created_at":"2013-04-04T15:56:09Z","updated_at":"2015-06-18T17:45:10Z","pushed_at":"2015-08-18T22:23:47Z","git_url":"git://github.com/rashidkpc/kibana.git","ssh_url":"git@github.com:rashidkpc/kibana.git","clone_url":"https://github.com/rashidkpc/kibana.git","svn_url":"https://github.com/rashidkpc/kibana","homepage":"","size":68513,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":0,"forks":8,"open_issues":0,"watchers":25,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"5a8f7701e071569d754abd41e503a2bb12a83d8e","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":7833168,"name":"kibana","full_name":"elastic/kibana","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/kibana","description":"Kibana","fork":false,"url":"https://api.github.com/repos/elastic/kibana","forks_url":"https://api.github.com/repos/elastic/kibana/forks","keys_url":"https://api.github.com/repos/elastic/kibana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/kibana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/kibana/teams","hooks_url":"https://api.github.com/repos/elastic/kibana/hooks","issue_events_url":"https://api.github.com/repos/elastic/kibana/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/kibana/events","assignees_url":"https://api.github.com/repos/elastic/kibana/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/kibana/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/kibana/tags","blobs_url":"https://api.github.com/repos/elastic/kibana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/kibana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/kibana/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/kibana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/kibana/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/kibana/languages","stargazers_url":"https://api.github.com/repos/elastic/kibana/stargazers","contributors_url":"https://api.github.com/repos/elastic/kibana/contributors","subscribers_url":"https://api.github.com/repos/elastic/kibana/subscribers","subscription_url":"https://api.github.com/repos/elastic/kibana/subscription","commits_url":"https://api.github.com/repos/elastic/kibana/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/kibana/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/kibana/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/kibana/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/kibana/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/kibana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/kibana/merges","archive_url":"https://api.github.com/repos/elastic/kibana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/kibana/downloads","issues_url":"https://api.github.com/repos/elastic/kibana/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/kibana/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/kibana/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/kibana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/kibana/labels{/name}","releases_url":"https://api.github.com/repos/elastic/kibana/releases{/id}","created_at":"2013-01-26T04:00:59Z","updated_at":"2015-08-18T20:25:31Z","pushed_at":"2015-08-18T19:45:11Z","git_url":"git://github.com/elastic/kibana.git","ssh_url":"git@github.com:elastic/kibana.git","clone_url":"https://github.com/elastic/kibana.git","svn_url":"https://github.com/elastic/kibana","homepage":"https://www.elastic.co/products/kibana","size":89345,"stargazers_count":3995,"watchers_count":3995,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1467,"mirror_url":null,"open_issues_count":593,"forks":1467,"open_issues":593,"watchers":3995,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/kibana/pulls/4705"},"html":{"href":"https://github.com/elastic/kibana/pull/4705"},"issue":{"href":"https://api.github.com/repos/elastic/kibana/issues/4705"},"comments":{"href":"https://api.github.com/repos/elastic/kibana/issues/4705/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/kibana/pulls/4705/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/kibana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/kibana/pulls/4705/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/kibana/statuses/19ce1863a4bedce6b0c825948bf819cd0ed9acca"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":2,"changed_files":2}}