Skip to content

Commit 3f73414

Browse files
Merge pull request #57 from RudyRed/fix/date-input-incorrect
fix: input date issue
2 parents f0b4214 + 63fb984 commit 3f73414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Date/CalendarEdit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function CalendarInputPure(
148148

149149
const inputFormat = React.useMemo(() => {
150150
// TODO: something cleaner and more universal?
151-
const inputDate = formatter.format(new Date(Date.UTC(2020, 10 - 1, 1)))
151+
const inputDate = formatter.format(new Date(2020, 10 - 1, 1))
152152
return inputDate
153153
.replace('2020', 'YYYY')
154154
.replace('10', 'MM')

0 commit comments

Comments
 (0)