From 47e86f543415585ab1e1b2b1ed1d98830817a1be Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 19 九月 2022 09:41:07 +0800
Subject: [PATCH] 2022.9.16
---
utils/util.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/utils/util.js b/utils/util.js
index d59968c..3aa9e77 100644
--- a/utils/util.js
+++ b/utils/util.js
@@ -15,14 +15,14 @@
const thisDay = now.date()
if (timeYear < thisYear) {
- return time.format('YYYY骞碝M鏈�')
+ return time.format('YYYY-MM-DD')
} else if (timeMonth < thisMonth) {
- return time.format('MM鏈圖D鏃�')
+ return time.format('MM-DD')
} else if (timeDay < thisDay) {
if (timeDay + 1 == thisDay) {
return '鏄ㄥぉ'
} else {
- return time.format('MM鏈圖D鏃�')
+ return time.format('MM-DD')
}
} else {
return time.fromNow()
--
Gitblit v1.9.3