From 753fc762a01eaf141d7dee7d52b82cfc5a0976fe Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 12 Aug 2024 01:14:52 +0800 Subject: [PATCH] remove unused code --- src/lib/datetime.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/datetime.js b/src/lib/datetime.js index f8d31b23..01a03280 100644 --- a/src/lib/datetime.js +++ b/src/lib/datetime.js @@ -192,10 +192,6 @@ export function getYearAndMonth(date) { const year = getYear(date); let month = getMonth(date); - if (month < 10) { - month = '0' + month; - } - return `${year}-${month}`; }