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 <[email protected]> Cc: Feng Tian <[email protected]> --- PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c index acc70a6..5143575 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, -- 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

