You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2018/02/14 17:55:29 UTC

atlas git commit: ATLAS-2440: UI: fix to render date attribute values in date-formatted string (instead of a long value)

Repository: atlas
Updated Branches:
  refs/heads/master 3635e8e24 -> a0c85e5aa


ATLAS-2440: UI: fix to render date attribute values in date-formatted string (instead of a long value)

Signed-off-by: Madhan Neethiraj <ma...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/a0c85e5a
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/a0c85e5a
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/a0c85e5a

Branch: refs/heads/master
Commit: a0c85e5aa0966303a3dda250956f2528af83678e
Parents: 3635e8e
Author: pratik24mac <pr...@gmail.com>
Authored: Wed Feb 14 18:18:42 2018 +0530
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Wed Feb 14 09:53:09 2018 -0800

----------------------------------------------------------------------
 dashboardv2/public/js/utils/CommonViewFunction.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/a0c85e5a/dashboardv2/public/js/utils/CommonViewFunction.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/utils/CommonViewFunction.js b/dashboardv2/public/js/utils/CommonViewFunction.js
index dfbfc08..cb762ac 100644
--- a/dashboardv2/public/js/utils/CommonViewFunction.js
+++ b/dashboardv2/public/js/utils/CommonViewFunction.js
@@ -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>';
             } else if (key === 'guid' || key === "__guid") {
                 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 {
                 val = _.escape(keyValue);
             }