diff --git a/core/core-frontend/src/components/filter-text/index.ts b/core/core-frontend/src/components/filter-text/index.ts index bcc75da1f9..b0a5dded6d 100644 --- a/core/core-frontend/src/components/filter-text/index.ts +++ b/core/core-frontend/src/components/filter-text/index.ts @@ -29,7 +29,7 @@ const timestampFormatDate = value => { if (!value) { return '-' } - return new Date(value)['format']() + return new Date(value).toLocaleString() } const valueText = (field, val, options) => { for (let index = 0; index < options.length; index++) { diff --git a/core/core-frontend/src/views/common/DvDetailInfo.vue b/core/core-frontend/src/views/common/DvDetailInfo.vue index 95f9478cab..e001bcc3b8 100644 --- a/core/core-frontend/src/views/common/DvDetailInfo.vue +++ b/core/core-frontend/src/views/common/DvDetailInfo.vue @@ -27,7 +27,7 @@ const timestampFormatDate = value => { if (!value) { return '-' } - return new Date(value)['format']() + return new Date(value).toLocaleString() }