From 3a6df9359ebf389c1eeba118a221fafc1f322258 Mon Sep 17 00:00:00 2001 From: Leonel Henriquez Date: Thu, 5 Sep 2024 21:33:29 -0600 Subject: [PATCH] =?UTF-8?q?[Fix=20=F0=9F=90=9B]=20update=20month=20display?= =?UTF-8?q?=20logic=20in=20Calendar=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Calendar/Months.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Calendar/Months.tsx b/src/components/Calendar/Months.tsx index 30aa138..0ec2aba 100644 --- a/src/components/Calendar/Months.tsx +++ b/src/components/Calendar/Months.tsx @@ -30,7 +30,7 @@ const Months = (props: Props) => { }} active={currentMonth === item} > - {dateFormat(new Date(`2022-${item}-01`), "MMM", i18n)} + {dateFormat(new Date(2022, item - 1, 1), "MMM", i18n)} ))}