diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-02-02 16:36:23 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-02-03 16:13:18 +0800 |
commit | 0119b0660789a8db77fa5ff54652d155d7948d9b (patch) | |
tree | 74bdc9c86ef56553348f2fa741399cdfbee6a6ec /PcAtChipsetPkg | |
parent | 09c777c6a7f7afedd87cd92bf4feafc6e566949a (diff) | |
download | edk2-platforms-0119b0660789a8db77fa5ff54652d155d7948d9b.tar.xz |
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>
Diffstat (limited to 'PcAtChipsetPkg')
-rw-r--r-- | PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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,
|