From 002335285afe740841ceb0465e84a4cf5e88dfeb Mon Sep 17 00:00:00 2001 From: blue <825657193@qq.com> Date: Sat, 6 Jan 2024 18:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/api/date.js | 3 ++- im-uniapp/common/date.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/im-ui/src/api/date.js b/im-ui/src/api/date.js index 705f1b7..2329860 100644 --- a/im-ui/src/api/date.js +++ b/im-ui/src/api/date.js @@ -21,7 +21,8 @@ let toTimeText = (timeStamp, simple) => { //不属于今年 timeText = formatDateTime(dateTime); if(simple){ - timeText = timeText.substring(2,5); + console.log(timeText) + timeText = timeText.substr(2,5); } } return timeText; diff --git a/im-uniapp/common/date.js b/im-uniapp/common/date.js index 705f1b7..c3a747d 100644 --- a/im-uniapp/common/date.js +++ b/im-uniapp/common/date.js @@ -21,7 +21,7 @@ let toTimeText = (timeStamp, simple) => { //不属于今年 timeText = formatDateTime(dateTime); if(simple){ - timeText = timeText.substring(2,5); + timeText = timeText.substr(2,5); } } return timeText;