From 1618d1d7855a6c2bdb01387330854b6e6159dd61 Mon Sep 17 00:00:00 2001 From: Tao Wang Date: Mon, 19 Dec 2016 10:18:49 +0800 Subject: [PATCH] Update outdated date formatting --- .../main/resources/org/apache/spark/ui/static/historypage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/org/apache/spark/ui/static/historypage.js b/core/src/main/resources/org/apache/spark/ui/static/historypage.js index 54810edaf1460..7915b0e1a5edc 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/historypage.js +++ b/core/src/main/resources/org/apache/spark/ui/static/historypage.js @@ -38,7 +38,7 @@ function makeIdNumeric(id) { } function formatDate(date) { - if (date <= 0) return "-"; + if (date.substr(0, 2) == "19") return "-"; else return date.split(".")[0].replace("T", " "); }