mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeModulePkg/PcRtc: Still create timezone variable when Daylight != 0
The patch fixes a regression bug caused by last check-in which causes Daylight setting cannot be set when timezone is unspecified. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
parent
09c777c6a7
commit
0119b06607
@ -487,7 +487,7 @@ PcRtcSetTime (
|
||||
//
|
||||
// Write timezone and daylight to RTC variable
|
||||
//
|
||||
if (Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) {
|
||||
if ((Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) && (Time->Daylight == 0)) {
|
||||
Status = EfiSetVariable (
|
||||
mTimeZoneVariableName,
|
||||
&gEfiCallerIdGuid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user