Merge pull request #2959 from jumpserver/command_list_html_bug

[Bugfix] 修复命令记录页面的时间转换bug
pull/2965/head
BaiJiangJie 2019-07-16 15:26:30 +08:00 committed by GitHub
commit a81601b0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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();