diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-02-02 16:36:23 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-27 16:29:31 +0800 |
commit | ad74c78e8c369387599fc70ee6232e499e5f635e (patch) | |
tree | 0e8d99eef0276c61784f6f39e47535d7a69b280a /PcAtChipsetPkg | |
parent | 4385b3967bc12bdabbf1ab7f9650bae12a136cee (diff) | |
download | edk2-platforms-ad74c78e8c369387599fc70ee6232e499e5f635e.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>
(cherry picked from commit 0119b0660789a8db77fa5ff54652d155d7948d9b)
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,
|