Skip to content

Commit

Permalink
Revert "primefaces#16686 fix: incorrect month value in Calendar compo…
Browse files Browse the repository at this point in the history
…nent"

This reverts commit 3192fbe.
  • Loading branch information
pointers-enjoyer committed Nov 4, 2024
1 parent 1f7434f commit 59b0d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
}

formatDateKey(date: Date): string {
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;
}

setCurrentHourPM(hours: number) {
Expand Down

0 comments on commit 59b0d27

Please sign in to comment.