Skip to content

Commit

Permalink
FEB_29th_selection
Browse files Browse the repository at this point in the history
  • Loading branch information
preetigairi committed Mar 8, 2024
1 parent fe0dee6 commit 1f50b97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class LocaleFormat {
if (day <= validDays[month]) {
return true;
}
if (year % 4 === 0 && month === 2 && day === 29) {
if (year % 4 === 0 && (month + 1) === 2 && day === 29) {
return true;
}
return false;
Expand Down

0 comments on commit 1f50b97

Please sign in to comment.