From: Ruiyu Ni Date: Tue, 2 Feb 2016 08:36:23 +0000 (+0800) Subject: MdeModulePkg/PcRtc: Still create timezone variable when Daylight != 0 X-Git-Tag: edk2-stable201903~7895 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=0119b0660789a8db77fa5ff54652d155d7948d9b 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 Reviewed-by: Feng Tian --- diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c index acc70a67b7..5143575e31 100644 --- a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c +++ b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c @@ -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,