From bb2eea3cea631aca55aa982fc5fea96587107723 Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Tue, 6 Aug 2019 17:50:46 +0800 Subject: [PATCH] =?UTF-8?q?[fix]{DateTimeNow}:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E5=A4=9A=E4=B8=80=E5=A4=A9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index 7e83c6f..3a6a264 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -94,7 +94,7 @@ export function DateTimeNow() { const date = new Date(); const Y = `${date.getFullYear()}年`; const M = `${date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() + 1}月`; - const D = `${date.getDate() + 1 < 10 ? `0${date.getDate() + 1}` : date.getDate() + 1}日`; + const D = `${date.getDate() + 1 < 10 ? `0${date.getDate()}` : date.getDate()}日`; return Y + M + D; }