We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c0ef2 commit aee13d8Copy full SHA for aee13d8
src/lib/date-utils.ts
@@ -5,8 +5,8 @@ export function isLeapYear(year: number): boolean {
5
}
6
export function getMonthLength(year: number, month: number): number {
7
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]
+ const monthLengths = [31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
+ return monthLengths[month]
10
11
12
export function toText(date: Date | null, formatTokens: FormatToken[]): string {
0 commit comments