You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/06/25 15:29:54 UTC

[GitHub] [spark] tgravescs commented on a change in pull request #28918: [SPARK-32068][WEBUI] Task lauchtime in stage tab not correct

tgravescs commented on a change in pull request #28918:
URL: https://github.com/apache/spark/pull/28918#discussion_r445646571



##########
File path: core/src/main/resources/org/apache/spark/ui/static/utils.js
##########
@@ -161,7 +161,15 @@ function setDataTableDefaults() {
 
 function formatDate(date) {
   if (date <= 0) return "-";
-  else return date.split(".")[0].replace("T", " ");
+  else {
+     var d = new Date(date.replace("GMT", "Z"))
+     return d.getFullYear() + '-' +

Review comment:
       does this pad with zeroes properly - see formatTimeMillis?  From your screen shot it looks like it does but I'm wondering if that is browser specific.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org