qt5base-lts/tests/auto/corelib/tools
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
..
qalgorithms Make tst_qalgorithms compliant with the Standard 2013-09-05 09:48:22 +02:00
qarraydata Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qbitarray Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qbytearray Base64: Implement the "base64url" encoding and the stripping of '=' 2013-09-14 03:20:25 +02:00
qbytearraymatcher Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qbytedatabuffer Improve QByteDataBuffer::read() performance with partial reads 2012-11-03 00:24:37 +01:00
qcache Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qchar Ensure we don't repeat QTBUG-30931 in Qt5 2013-06-18 13:36:23 +02:00
qcommandlineparser Expose QTest::currentAppName() and remove hard-coded argv[0] in tests 2013-09-26 18:45:16 +02:00
qcontiguouscache Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qcryptographichash Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qdate Add the RFC2822Date format 2013-07-24 15:02:35 +02:00
qdatetime QDateTime - Fix round-trip of second occurrence times 2013-09-27 21:47:55 +02:00
qeasingcurve Avoided zero devision in cube root approximation 2013-07-29 19:29:15 +02:00
qelapsedtimer Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qexplicitlyshareddatapointer Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfreelist Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qhash QHash/QSet - fix QHash::erase when the hash is shared 2013-08-24 15:36:30 +02:00
qline Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qlinkedlist QLinkedList - extend the auto test. 2013-08-29 08:16:44 +02:00
qlist QList - fix insert with iterator on shared instance 2013-08-24 15:36:30 +02:00
qlocale QLocale - Fix Mac date format code translation 2013-09-26 20:42:33 +02:00
qmap Add first/last accessors to QMap 2013-09-08 16:13:16 +02:00
qmargins Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qmessageauthenticationcode tst_qmessageauthenticationcode: Fix warning about character conversion. 2013-06-08 10:29:34 +02:00
qpair Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpoint Add static dotProduct methods to the QPoint(F) classes 2013-01-26 00:09:14 +01:00
qpointf Fix QPointF::division autotest 2013-08-19 14:24:28 +02:00
qqueue Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qrect Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
qregexp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qregularexpression QRegularExpression: print a warning if (?J) is used in a pattern 2013-02-12 22:40:21 +01:00
qringbuffer Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qscopedpointer Revert "Implement move-ctor and move-assignment-op for QScopedPointer" 2013-09-05 08:20:19 +02:00
qscopedvaluerollback Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qset Added initializer list constructors for Qt associative containers. 2013-01-24 11:38:54 +01:00
qsharedpointer Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
qsize Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qsizef Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstl Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstring QString::reserve fix to avoid truncation 2013-09-26 18:45:16 +02:00
qstring_no_cast_from_bytearray Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstringbuilder Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstringlist Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstringmatcher Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstringref New QStringRef methods. 2013-09-11 08:06:21 +02:00
qtextboundaryfinder Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtime Revert 15da0a5af2. 2013-09-19 14:58:27 +02:00
qtimeline Fixed bug in QTimeLine::setPaused(false) 2013-03-13 14:51:05 +01:00
qtimezone QTimeZone - Add Windows backend 2013-09-23 01:13:58 +02:00
qvarlengtharray QVarLengthArray: add squeeze function 2013-01-28 16:52:40 +01:00
qvector QVector - removeLast optimize 2013-03-07 08:37:26 +01:00
tools.pro QTimeZone - Define new class and api 2013-09-22 22:21:15 +02:00