Merge pull request #2959 from jumpserver/command_list_html_bug

[Bugfix] 修复命令记录页面的时间转换bug
This commit is contained in:
BaiJiangJie
2019-07-16 15:26:30 +08:00
committed by GitHub

View File

@@ -1110,6 +1110,7 @@ function objectAttrsIsBool(obj, attrs) {
}
function cleanDate(d) {
if (typeof d === 'number'){return d}
for (var i=0; i<2; i++) {
if (isNaN(Date.parse(d))) {
d = d.split('+')[0].trimRight();