From d7d62a35921b0e370aeb815a8e597ac53e29be97 Mon Sep 17 00:00:00 2001 From: denkiuo604 Date: Mon, 1 Aug 2022 21:23:58 +0900 Subject: [PATCH] Fix src/App.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 意図しない月の公開日が取得される不具合を修正 --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 4e2bc62..e7b39d7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -32,7 +32,7 @@ function App() { setToday(today); const [pubMonth, pubWeek] = getPubMonthAndWeek(today); const tmpToday = new Date(today.getTime()); - tmpToday.setMonth(pubMonth); + tmpToday.setMonth(pubMonth, 1); const pubDate = getNthDay(tmpToday, pubWeek, pubDay); setPubTime(getDateWithPubTime(pubDate));