diff --git a/src/utils/tools.js b/src/utils/tools.js index 64379455..c561a2b4 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -1443,7 +1443,7 @@ export const changeTimeByDate = (date) => { const hours = Math.floor(diff / 3600) return hours === 1 ? `${hours} ${i18n.global.t('entity.search.hourAgo')}` : `${hours} ${i18n.global.t('entity.search.hoursAgo')}` } else { - return (new Date(oldDate).toString()).replace(/GMT.*/, '') + return date } } }