Repository: incubator-airflow Updated Branches: refs/heads/v1-9-test 70ffa43ad -> 56f5c240d
[AIRFLOW-XXX] Fix DateTime in Tree View Closes #2687 from stas-em/www-tree-view-fix- displaytime (cherry picked from commit a13618dd869ec06ad574b8ace98dfb07bfc9e198) Signed-off-by: Bolke de Bruin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/56f5c240 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/56f5c240 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/56f5c240 Branch: refs/heads/v1-9-test Commit: 56f5c240d583f92c0b60afef823cc8cac5f54b3c Parents: 70ffa43 Author: Stas <[email protected]> Authored: Sun Oct 22 19:29:55 2017 +0200 Committer: Bolke de Bruin <[email protected]> Committed: Sun Oct 22 19:30:14 2017 +0200 ---------------------------------------------------------------------- airflow/www/templates/airflow/tree.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/56f5c240/airflow/www/templates/airflow/tree.html ---------------------------------------------------------------------- diff --git a/airflow/www/templates/airflow/tree.html b/airflow/www/templates/airflow/tree.html index b570fae..f20127c 100644 --- a/airflow/www/templates/airflow/tree.html +++ b/airflow/www/templates/airflow/tree.html @@ -121,9 +121,7 @@ var svg = d3.select("svg") var num_square = base_node.instances.length; var extent = d3.extent(base_node.instances, function(d,i) { - dttm = new Date(d.execution_date); - dttm.setHours(dttm.getHours()+7) - return dttm; + return new Date(d.execution_date); }); var xScale = d3.time.scale() .domain(extent)
