correct leap year calculate method.

Signed-off-by:ydong10
Reviewed-by:hhtian


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11982 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2011-07-05 09:30:49 +00:00
parent 69cb32fca2
commit c3342aa81f
1 changed files with 2 additions and 2 deletions

View File

@ -302,8 +302,8 @@ GetNumericInput (
switch (QuestionValue->Value.date.Month) { switch (QuestionValue->Value.date.Month) {
case 2: case 2:
if ((QuestionValue->Value.date.Year % 4) == 0 && if ((QuestionValue->Value.date.Year % 4) == 0 &&
(QuestionValue->Value.date.Year % 100) != 0 && ((QuestionValue->Value.date.Year % 100) != 0 ||
(QuestionValue->Value.date.Year % 400) == 0) { (QuestionValue->Value.date.Year % 400) == 0)) {
Maximum = 29; Maximum = 29;
} else { } else {
Maximum = 28; Maximum = 28;