From 583ee3c064e84e287b52dd392b1784118a01479d Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Mon, 25 Jul 2022 22:13:31 +0800 Subject: [PATCH] =?UTF-8?q?..=E4=BF=AE=E5=A4=8D=E6=98=BE=E7=A4=BA=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=90=93=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/Note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/Note.js b/apps/Note.js index c3118cc..0855aeb 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -279,7 +279,7 @@ export async function Note(e, { } async function dateTime_(time) { - return moment(time).format("hh") < 6 ? "凌晨" : moment(time).format("hh") < 12 ? "上午" : moment(time).format("hh") < 17.5 ? "下午" : moment(time).format("hh") < 19.5 ? "傍晚" : moment(time).format("hh") < 22 ? "晚上" : "深夜"; + return moment(time).format("HH") < 6 ? "凌晨" : moment(time).format("HH") < 12 ? "上午" : moment(time).format("HH") < 17.5 ? "下午" : moment(time).format("HH") < 19.5 ? "傍晚" : moment(time).format("HH") < 22 ? "晚上" : "深夜"; } async function getDailyNote(uid, cookie) { let mysApi = new MysApi(uid, cookie)