]> granicus.if.org Git - icu/commit
ICU-13845 Windows timezone detection: When DST is off, map to an Etc/GMT+-hh zone.
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 23 Sep 2020 20:21:16 +0000 (13:21 -0700)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Tue, 29 Sep 2020 20:57:39 +0000 (13:57 -0700)
commitb4d056ab935921d615e93db159f842179b39acfb
tree620aca488e568d757f41486fe28c0f44297d61bf
parentb2edfb89ccb534ff882954328c0d65d6721bd688
ICU-13845 Windows timezone detection: When DST is off, map to an Etc/GMT+-hh zone.

The Windows 'Date and Time' Control Panel has a setting for "Automatically
adjust clock for DST". When this setting is manually unchecked, the DST
setting is considered OFF, and the clock does not adjust for DST.

This change detects when the setting is OFF and uses the non-DST offset
to map to an Etc/GMT+-hh zone.

- Also refactor uprv_detectWindowsTimeZone

Co-authored-by: Jungshik Shin <jshin@chromium.org>
icu4c/source/common/wintz.cpp