mirror of https://github.com/jumpserver/jumpserver
Merge pull request #2959 from jumpserver/command_list_html_bug
[Bugfix] 修复命令记录页面的时间转换bugpull/2965/head
commit
a81601b0a1
|
@ -1110,6 +1110,7 @@ function objectAttrsIsBool(obj, attrs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanDate(d) {
|
function cleanDate(d) {
|
||||||
|
if (typeof d === 'number'){return d}
|
||||||
for (var i=0; i<2; i++) {
|
for (var i=0; i<2; i++) {
|
||||||
if (isNaN(Date.parse(d))) {
|
if (isNaN(Date.parse(d))) {
|
||||||
d = d.split('+')[0].trimRight();
|
d = d.split('+')[0].trimRight();
|
||||||
|
|
Loading…
Reference in New Issue