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>
//\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