]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/PcRtc: Still create timezone variable when Daylight != 0
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 2 Feb 2016 08:36:23 +0000 (16:36 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 3 Feb 2016 08:13:18 +0000 (16:13 +0800)
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>
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c

index acc70a67b71c72d759536ebd41061d2fbf56535c..5143575e311f9e4d11d222e83e8c45f96afee4cf 100644 (file)
@@ -487,7 +487,7 @@ PcRtcSetTime (
   //\r
   // Write timezone and daylight to RTC variable\r
   //\r
-  if (Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) {\r
+  if ((Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) && (Time->Daylight == 0)) {\r
     Status = EfiSetVariable (\r
                mTimeZoneVariableName,\r
                &gEfiCallerIdGuid,\r