Merge pull request #1618 from itxiaobaishu/feature/my_modify

safari浏览器显示Invalid Date问题
This commit is contained in:
许雪里 2020-10-27 20:26:22 +08:00 committed by GitHub
commit 5a1fa6dcca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ $(function() {
"data": 'triggerTime', "data": 'triggerTime',
"width":'20%', "width":'20%',
"render": function ( data, type, row ) { "render": function ( data, type, row ) {
return data?moment(new Date(data)).format("YYYY-MM-DD HH:mm:ss"):""; return data?moment(data).format("YYYY-MM-DD HH:mm:ss"):"";
} }
}, },
{ {
@ -145,7 +145,7 @@ $(function() {
"data": 'handleTime', "data": 'handleTime',
"width":'20%', "width":'20%',
"render": function ( data, type, row ) { "render": function ( data, type, row ) {
return data?moment(new Date(data)).format("YYYY-MM-DD HH:mm:ss"):""; return data?moment(data).format("YYYY-MM-DD HH:mm:ss"):"";
} }
}, },
{ {