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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]