summaryrefslogtreecommitdiffstats
path: root/portal/src
diff options
context:
space:
mode:
Diffstat (limited to 'portal/src')
-rw-r--r--portal/src/main/webapp/extsys/ems/js/commonUtil.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/portal/src/main/webapp/extsys/ems/js/commonUtil.js b/portal/src/main/webapp/extsys/ems/js/commonUtil.js
index af09482..4c24bca 100644
--- a/portal/src/main/webapp/extsys/ems/js/commonUtil.js
+++ b/portal/src/main/webapp/extsys/ems/js/commonUtil.js
@@ -44,7 +44,7 @@ commonUtil.parseDate = function (dateObj, format) {
(dateObj.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(format))
- format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] :
+ format = format.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] :
("00" + o[k]).substr(("" + o[k]).length));
return format;
};