Skip to content

Commit 948816d

Browse files
[Fix 🐛] Update date format in Week component
The code changes update the date format in the Week component of the Calendar. Instead of using a string to specify the date, it now uses the `new Date()` constructor with specific parameters. This change improves the readability and maintainability of the code.
1 parent 766ad82 commit 948816d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Calendar/Week.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Week = () => {
4343
{ucFirst(
4444
shortString(
4545
dateFormat(
46-
new Date(`2022-11-${6 + item + startDateModifier}`),
46+
new Date(2022, 10, 6 + item + startDateModifier),
4747
"ddd",
4848
i18n
4949
) || ""

0 commit comments

Comments
 (0)