airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-XXX] Fix DateTime in Tree View
Date Sun, 22 Oct 2017 17:30:03 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/master dfe1d53f8 -> a13618dd8


[AIRFLOW-XXX] Fix DateTime in Tree View

Closes #2687 from stas-em/www-tree-view-fix-
displaytime


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/a13618dd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/a13618dd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/a13618dd

Branch: refs/heads/master
Commit: a13618dd869ec06ad574b8ace98dfb07bfc9e198
Parents: dfe1d53
Author: Stas <stas@emelyanenko.net>
Authored: Sun Oct 22 19:29:55 2017 +0200
Committer: Bolke de Bruin <bolke@xs4all.nl>
Committed: Sun Oct 22 19:29:55 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/a13618dd/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)


Mime
View raw message