qt5base-lts/src
Edward Welbourne 0efebf168d Correct fake-DST detection and handling in QTZP_win
The end-of-year checks previously presumed they would accompany a zero
daylight-savings change there; however, this misunderstands what a
fake transition is doing. A fake at the end of the year means that the
transition during the year is out of the time the fake claims it goes
into, so the offset nominally in effect after the fake should match
the offset the year started in, the same as for a year-start fake.
However, implementing that exposed the fact that Bangladesh's brief
flirtation with DST in 2009 ended at the end of the year, and MS's
data has no other instance (aside from entirely bogusly claiming that
Bhutan did the same in 2009) of an end-of-year transition, in
particular no fake transitions. So the end-of-year case for faking
does not arise and I've eliminated it from the code here. This
greatly simplifies the code to detect fake DST rules.

At the same time, in the ruleToData() wrapper, use the transition
implied by isDst only if it isn't the fake one; the other is the only
real transition in the year anyway, however described. Also, extract
the detection of start-of-year transition times to a function and make
it more exact.

Pick-to: 6.3
Change-Id: Ide160d28e7cca37c224f40164ebe7f9a17f028e7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-03-04 23:26:12 +01:00
..
3rdparty Update bundled libjpeg-turbo to version 2.1.3 2022-03-02 17:58:07 +01:00
android Android: make sure that orientationChange is reported after resize 2022-03-04 02:37:11 +01:00
concurrent Do not highlight the Image Scaling Example anymore in Qt Creator 2022-02-17 18:16:42 +01:00
corelib Correct fake-DST detection and handling in QTZP_win 2022-03-04 23:26:12 +01:00
dbus CMake: Document source file properties 2022-02-15 15:44:51 +01:00
entrypoint QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
gui QBitmap::fromPixmap: document \since 2022-03-04 01:58:10 +01:00
network Network: Use system publicsuffix database copy when available 2022-03-03 15:56:09 +01:00
opengl Fix painting clipping glitches with fractional scaling 2022-03-02 13:58:10 +00:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport Make sure all qtbase private headers include at least one other 2022-02-24 12:07:00 -08:00
plugins Android: make sure that orientationChange is reported after resize 2022-03-04 02:37:11 +01:00
printsupport Fix assert showing default-constructed QPrintPreviewDialog 2022-02-28 12:39:54 +01:00
sql Treat invalid Q(Date)?Time as null when used as an SQL value 2022-02-21 20:37:28 +01:00
testlib Fix QTest::toString() over QT_TYPESAFE_FLAGS QFlags 2022-03-04 01:26:53 +01:00
tools Bootstrap: Make compiler warnings fatal 2022-03-02 11:03:44 +01:00
widgets Fix Q_FLAG declaration over enumerations 2022-03-02 19:45:12 +01:00
xml Make sure all qtbase private headers include at least one other 2022-02-24 12:07:00 -08:00
CMakeLists.txt