mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
EmbeddedPkg/TimeBaseLib: aligning year with UEFI specification
According to the UEFI Specification version 2.11, the valid range for the Year field in the EFI_TIME structure is from 1900 to 9999. Currently IsTimeValid() checks a restricted range 2000 - 2099. Update range in TimeBaseLib.c to match UEFI specification. Signed-off-by: Pankaj Singh <pansing@qti.qualcomm.com>
This commit is contained in:
parent
1cd24ff130
commit
4fa354b116
1 changed files with 2 additions and 2 deletions
|
|
@ -271,8 +271,8 @@ IsTimeValid (
|
|||
)
|
||||
{
|
||||
// Check the input parameters are within the range specified by UEFI
|
||||
if ((Time->Year < 2000) ||
|
||||
(Time->Year > 2099) ||
|
||||
if ((Time->Year < 1900) ||
|
||||
(Time->Year > 9999) ||
|
||||
(Time->Month < 1) ||
|
||||
(Time->Month > 12) ||
|
||||
(!IsDayValid (Time)) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue