Skip to content

Commit cceacd7

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

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
@@ -106,7 +106,7 @@ export const getDaysOfMonth = (month: number, year: number, firstDayOfWeek: numb
106106
const numDays = getNumDaysInMonth(month, year);
107107
let previousNumDays: number; //previous month number of days
108108
if (month === 1) {
109-
//If january the previous month should be january and the last year
109+
// If the current month is January, the previous month should be December of the previous year.
110110
previousNumDays = getNumDaysInMonth(12, year - 1);
111111
} else {
112112
// Otherwise, the previous month should be the current month - 1 of the same year.

0 commit comments

Comments
 (0)