mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
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:
parent
69cb32fca2
commit
c3342aa81f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user