Skip to content

Commit 18967fc

Browse files
fix: Add max days
1 parent 6c0645b commit 18967fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@internationalized/date/tests/customCalendarImpl.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export class Custom454Calendar extends GregorianCalendar {
2222
return weekPattern[date.month - 1] * 7;
2323
}
2424

25+
getMaxDays(): number {
26+
return 35
27+
}
28+
2529
fromJulianDay(jd: number): CalendarDate {
2630
const date = super.fromJulianDay(jd);
2731
let year = date.year;

0 commit comments

Comments
 (0)