summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-10-27 16:40:46 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2017-11-30 20:19:54 +0000
commita99c773972d845e453a86974653df19f60d8e7ca (patch)
treefa5d5d86f33d81a8c55b16a21638af37e0adaf5b /bin
parent81ad5bc838538084d14e4627ad405262026b72a2 (diff)
Refine handling of wMonth checks in QWinTimeZonePrivate
The MS API documents that the two TIME_ZONE_INFORMATION date fields either both have wMonth clear (when there is no DST) or both have it set (for each part of a DST pair). This rule is followed even when there's a standard time change without DST, with perverse results I'll deal with in a later commit. Add code in init() to verify the rule is followed and qWarning() if not. A year with no transitions doesn't imply no earlier or later year has transitions, so don't give up on searches for transitions because of it. Also fix a potential uninitialized variable bug, related to data() breaking out of a loop on such a year. Change-Id: I1ad86c07e54b2eb835a2e02d18dc64022f52a0d9 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions