Skip to content

Commit

Permalink
chore: use datelibrary to compare months (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltonvus authored Mar 15, 2024
1 parent 50e641b commit 9126429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember-power-calendar/src/-private/days-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export function buildDay(
date: new Date(date),
isDisabled: isDisabled,
isFocused: focusedId === id,
isCurrentMonth: date.getMonth() === currentCenter.getMonth(),
isCurrentMonth: isSame(date, currentCenter, 'month'),
isToday: isSame(date, today, 'day'),
isSelected: dayIsSelected(date, calendar),
} as PowerCalendarDay);
Expand Down

0 comments on commit 9126429

Please sign in to comment.