Github user tangpengbupt commented on a diff in the pull request:
https://github.com/apache/spark/pull/14577#discussion_r77793610
--- Diff: core/src/main/resources/org/apache/spark/ui/static/historypage.js
---
@@ -31,9 +31,20 @@ function makeIdNumeric(id) {
return resl;
}
+function padLeft(val) {
+ if(val < 10) return "0" + val;
+ else return val;
+}
+
function formatDate(date) {
- if (date <= 0) return "-";
- else return date.split(".")[0].replace("T", " ");
+ if (date <= 0) {
+ return "-";
+ } else {
+ var localDate = new Date(date.split(".")[0].replace("T", " ") + "
UTC");
--- End diff --
it doesn't support FF and ie,because FF can't recognize "-",it can only
recognize "/" when we use date form.
use "var localDate = new Date((date.split(".")[0].replace("T", " ")+ "
UTC").replace(/-/g,"/")); "to make a date form, like "2016/09/06 10:00:00"
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]