{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13158","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13158/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13158/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13158/events","html_url":"https://github.com/apache/spark/pull/13158","id":155392686,"number":13158,"title":"[SPARK-15373][WEB UI] Spark UI should show consistent timezones.","user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-18T00:30:38Z","updated_at":"2016-05-18T00:32:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13158","html_url":"https://github.com/apache/spark/pull/13158","diff_url":"https://github.com/apache/spark/pull/13158.diff","patch_url":"https://github.com/apache/spark/pull/13158.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nCurrently, SparkUI shows two timezones in a single page when the timezone of browser is different from the server JVM timezone. The following is an example on Databricks CE which uses 'Etc/UTC' timezone.\r\n\r\n- The time of `submitted` column of list and pop-up description shows `2016/05/18 00:03:07`\r\n- The time of timeline shows `2016/05/17 17:03:07`.\r\n\r\n![Different Timezone](https://issues.apache.org/jira/secure/attachment/12804553/12804553_timezone.png)\r\n\r\nThis PR fixes the **timeline chart** to use the same timezone by the followings.\r\n- Upgrade `vis` from 3.9.0(2015-01-16)  to 4.16.1(2016-04-18)\r\n- Override `moment` of `vis` to get `offset`\r\n- Update `AllJobsPage`, `JobPage`, and `StagePage`.\r\n\r\n## How was this patch tested?\r\n\r\nManual. Run the following command and see the Spark UI's event timelines.\r\n\r\n```\r\n$ SPARK_SUBMIT_OPTS=\"-Dscala.usejavacp=true -Duser.timezone=Etc/UTC\" bin/spark-submit --class org.apache.spark.repl.Main\r\n...\r\nscala> sql(\"select 1\").head\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/219893989","html_url":"https://github.com/apache/spark/pull/13158#issuecomment-219893989","issue_url":"https://api.github.com/repos/apache/spark/issues/13158","id":219893989,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T00:32:40Z","updated_at":"2016-05-18T00:32:40Z","body":"**[Test build #58729 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/58729/consoleFull)** for PR 13158 at commit [`d1bdb32`](https://github.com/apache/spark/commit/d1bdb325870257eb5a15a1978ed50467ceded4ca)."}}