]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/Ls: Consider UEFI timezone may not be set
authorMarvin Haeuser <mhaeuser@outlook.de>
Sun, 20 Oct 2019 12:08:32 +0000 (20:08 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 4 Nov 2019 02:46:02 +0000 (10:46 +0800)
commit106369fe26579c2c97131c3dd9e7c7332a5ec575
tree4045572f96ef5af4161a4368b6d8755599280b23
parent17efd446c00b414ddeb53ec00b85d780f2f09250
ShellPkg/Ls: Consider UEFI timezone may not be set

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2294

EFI_RUNTIME_SERVICES.GetTime() might return an unspecified Timezone,
such as when SetTime() has not been called after the RTC was cut off
power. Consider this case by not attempting Timezone translations for
when it is invalid.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Marvin Haeuser <mhaeuser@outlook.de>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c