Commit a0c85e5a by pratik24mac Committed by Madhan Neethiraj

ATLAS-2440: UI: fix to render date attribute values in date-formatted string…

ATLAS-2440: UI: fix to render date attribute values in date-formatted string (instead of a long value) Signed-off-by: 's avatarMadhan Neethiraj <madhan@apache.org>
parent 3635e8e2
...@@ -217,6 +217,8 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum ...@@ -217,6 +217,8 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
val = '<a target="_blank" class="blue-link" href="' + keyValue + '">' + keyValue + '</a>'; val = '<a target="_blank" class="blue-link" href="' + keyValue + '">' + keyValue + '</a>';
} else if (key === 'guid' || key === "__guid") { } else if (key === 'guid' || key === "__guid") {
val = '<a title="' + key + '" href="#!/detailPage/' + keyValue + '">' + keyValue + '</a>'; val = '<a title="' + key + '" href="#!/detailPage/' + keyValue + '">' + keyValue + '</a>';
} else if (key.toLocaleLowerCase().indexOf("time") !== -1 || key.toLocaleLowerCase().indexOf("date") !== -1) {
val = new Date(keyValue);
} else { } else {
val = _.escape(keyValue); val = _.escape(keyValue);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment