Skip to content

Commit aee13d8

Browse files
authored
Update date-utils.ts
1 parent e6c0ef2 commit aee13d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/date-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export function isLeapYear(year: number): boolean {
55
}
66
export function getMonthLength(year: number, month: number): number {
77
const feb = isLeapYear(year) ? 29 : 28
8-
const monthLenghts = [31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
9-
return monthLenghts[month]
8+
const monthLengths = [31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
9+
return monthLengths[month]
1010
}
1111

1212
export function toText(date: Date | null, formatTokens: FormatToken[]): string {

0 commit comments

Comments
 (0)