diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-06 18:08:15 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-13 13:33:42 +0000 |
commit | 207bc6a38c0ab108f814963642880946f6ade32b (patch) | |
tree | a24dd68ed211329fb6b1871428b73ba1a9a88ed4 /BaseTools/Source/Python/AutoGen/AutoGen.py | |
parent | 26f9ef3ab3b344fa1e1e0ac31a096a2e500566a1 (diff) | |
download | edk2-207bc6a38c0ab108f814963642880946f6ade32b.tar.gz edk2-207bc6a38c0ab108f814963642880946f6ade32b.tar.bz2 edk2-207bc6a38c0ab108f814963642880946f6ade32b.zip |
ArmPlatformPkg/PL031RealTimeClockLib: ignore DST setting when timezone is set
According to the UEFI spec, the timezone setting which the platform needs
to record in addition to the actual date and time already reflects the
current DST setting. In other words, moving the clock from standard time
to daylight saving time also involves adding or subtracting 60 minutes
from the timezone setting, as well as flicking the EFI_TIME_IN_DAYLIGHT
bit in the DST setting.
This means we need to disregard the DST setting if the timezone is
specified, and only add or subtract the additional hour if we are on
local time.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
0 files changed, 0 insertions, 0 deletions