qt5base-lts/tests/auto
John Layt 475cbed244 QDateTime - Fix round-trip of second occurrence times
At the Daylight Tme to Standard Time transition, the local time repeats
itself, i.e. 2am occurs twice. Qt's behavior when setting this using
the local time is ambiguous, as it depends on the system implementation
of mktime, which behaves differently on different platforms.  Currently
this behavior remains undefined.  When setting using an msecs or time_t
value however we can determine the correct instance to use and cache it
to ensure that any conversion back from local time to msecs is performed
consistantly on all platforms.

Note that caching this value will result in any calculations being wrong
should the system time zone change, or its rules change.  This will be
fixed in Qt 5.3 when the system time zone change signal is implemented
and QDateTime switches to using QTimeZone instead of mktime to provide
consistnt behavior across platforms.

The QTimeZone spec does not require this fix as it already caches the
correct offset in setMSecsFromEpoch().

Change-Id: I799588db474e744a6d81e80f6a0442920569ebd3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-09-27 21:47:55 +02:00
..
android Fix clean-up code in Android autotest script 2013-08-05 14:53:18 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Teach CMake about Qt 5 plugins. 2013-09-10 14:38:18 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:25 +01:00
corelib QDateTime - Fix round-trip of second occurrence times 2013-09-27 21:47:55 +02:00
dbus Merge remote-tracking branch 'origin/stable' into dev 2013-08-27 22:51:09 +02:00
gui Expose QTest::currentAppName() and remove hard-coded argv[0] in tests 2013-09-26 18:45:16 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network tst_QNetworkReply: Don't remove file if never created 2013-09-26 08:40:38 +02:00
opengl Fixed tst_qgl for fullscreen platforms 2013-08-07 09:01:36 +02:00
other Fix a c&p bug in the IA2 bridge when returning the row description 2013-09-23 16:08:34 +02:00
printsupport When calling setPageSizeMM then the size needs to be passed as MM 2013-09-23 23:17:35 +02:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Expose QTest::currentAppName() and remove hard-coded argv[0] in tests 2013-09-26 18:45:16 +02:00
testlib Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
tools moc: Don't stumble over MSVC __declspec. 2013-09-24 10:09:14 +02:00
widgets Mac: QWizard default background pixmap works again 2013-09-26 20:42:33 +02:00
xml tests: Make the QT assignments more explicit 2013-08-21 19:05:52 +02:00
auto.pro Make the CMake tests run sequentially, not in parallel. 2013-07-08 14:48:03 +02:00
network-settings.h network test settings: support newer FTP server versions 2013-08-28 12:45:34 +02:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00