Skip to content

Commit 3ea9185

Browse files
Update core/src/components/datetime/utils/data.ts
Co-authored-by: Maria Hutt <[email protected]>
1 parent c936ec6 commit 3ea9185

File tree

1 file changed

+1
-1
lines changed
  • core/src/components/datetime/utils

1 file changed

+1
-1
lines changed

core/src/components/datetime/utils/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const getDaysOfMonth = (month: number, year: number, firstDayOfWeek: numb
109109
//If january the previous month should be january and the last year
110110
previousNumDays = getNumDaysInMonth(12, year - 1);
111111
} else {
112-
//If not the previous month should be month -1 and the current year
112+
// Otherwise, the previous month should be the current month - 1 of the same year.
113113
previousNumDays = getNumDaysInMonth(month - 1, year);
114114
}
115115
const firstOfMonth = new Date(`${month}/1/${year}`).getDay();

0 commit comments

Comments
 (0)