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>
This commit is contained in:
Ruiyu Ni 2016-02-02 16:36:23 +08:00
parent 09c777c6a7
commit 0119b06607
1 changed files with 1 additions and 1 deletions

View File

@ -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,