mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-02 07:55:16 +00:00
Merge pull request #2959 from jumpserver/command_list_html_bug
[Bugfix] 修复命令记录页面的时间转换bug
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user