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:
@@ -487,7 +487,7 @@ PcRtcSetTime (
|
|||||||
//
|
//
|
||||||
// Write timezone and daylight to RTC variable
|
// Write timezone and daylight to RTC variable
|
||||||
//
|
//
|
||||||
if (Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) {
|
if ((Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) && (Time->Daylight == 0)) {
|
||||||
Status = EfiSetVariable (
|
Status = EfiSetVariable (
|
||||||
mTimeZoneVariableName,
|
mTimeZoneVariableName,
|
||||||
&gEfiCallerIdGuid,
|
&gEfiCallerIdGuid,
|
||||||
|
Reference in New Issue
Block a user