qt5base-lts/tests/auto
Edward Welbourne 81858bf172 Don't pretend we know what DST to use for an offset date.
When QDateTime::addDate() and friends sanitize their end-state, they
were using the DST status of their start-state (if known) to control
it.  This lead to misguided results and, in particular, inconsistent
results given that a raw-constructed QDateTime comes into being
ignorant of its DST, while a .toLocalTime() one knows its DST.

Furthermore, the code to do this was triplicated, tricky and poorly
explained.  So pull it out into a local static function and explain
what it's doing, and why, more clearly and only once.

Task-number: QTBUG-49008
Change-Id: Ia4bb3c5e9267fff8bb963ea705267998218ed623
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
2016-01-12 09:23:55 +00:00
..
android Fix typo in test results report for android 2015-07-28 21:16:19 +00:00
bic/data bic: Add 5.{1,2,3,4}.0 bic data for linux-gcc-amd64 2015-02-14 06:54:20 +00:00
cmake CMake: Ensure that -fPIC is passed in tests. 2016-01-11 09:53:37 +00:00
compilerwarnings/data Fixed license headers 2015-02-17 18:46:09 +00:00
concurrent Tests: Replace Q[TRY]_VERIFY(v == true|false) by QVERIFY(v)|QVERIFY(!v). 2015-07-27 12:09:19 +00:00
corelib Don't pretend we know what DST to use for an offset date. 2016-01-12 09:23:55 +00:00
dbus Revert "dbus: Add method serial() and replySerial() to class DBusMessage." 2016-01-11 05:19:41 +00:00
gui don't rely on transitive dependencies 2016-01-08 18:51:02 +00:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network winrt: Use winsock2 API for hostname resolution on WinRT/WinPhone 2016-01-05 08:14:31 +00:00
opengl Doc: mention that Qt::AA_X11InitThreads isn't used anymore 2016-01-11 17:28:52 +00:00
other don't rely on transitive dependencies 2016-01-08 18:51:02 +00:00
printsupport Fix tst_QPrinter::doubleSidedPrinting() test and remove from blacklist 2015-11-06 18:44:04 +00:00
shared Update copyright headers 2015-02-11 06:49:51 +00:00
sql QSqlQueryModel::clear(): Call begin/endResetModel(). 2015-11-19 07:24:13 +00:00
testlib Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
tools add enablers for printing project errors in cumulative mode 2015-12-21 16:39:31 +00:00
widgets don't rely on transitive dependencies 2016-01-08 18:51:02 +00:00
xml Fix QDomNamedNodeMap::item crash with negative index 2015-10-29 08:05:45 +00:00
auto.pro Silence warnings about missing dbus-send command not found 2015-09-22 21:19:04 +00:00
network-settings.h Update copyright headers 2015-02-11 06:49:51 +00:00
qtest-config.h Update copyright headers 2015-02-11 06:49:51 +00:00
test.pl Update copyright headers 2015-02-11 06:49:51 +00:00