diff options
author | Liang Qi <liang.qi@nokia.com> | 2010-07-05 16:42:44 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@nokia.com> | 2010-07-05 16:42:44 +0200 |
commit | 8ef60f0791c1fb7fa649214238db6db3e2d975c6 (patch) | |
tree | c002f908f2a2ac66d20d3f45aba7d5605d656ea6 /tests/auto | |
parent | 752d46c90ee0fc5f06f01feedd8e0659178b15d4 (diff) | |
download | qt4-tools-8ef60f0791c1fb7fa649214238db6db3e2d975c6.tar.gz |
Revert "Support time zone designator in QDateTime::fromString() based on ISO 8601-2004 standard."
This reverts commit 752d46c90ee0fc5f06f01feedd8e0659178b15d4.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qdatetime/tst_qdatetime.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/qdatetime/tst_qdatetime.cpp b/tests/auto/qdatetime/tst_qdatetime.cpp index d23133db46..86a4c80e54 100644 --- a/tests/auto/qdatetime/tst_qdatetime.cpp +++ b/tests/auto/qdatetime/tst_qdatetime.cpp @@ -1286,12 +1286,6 @@ void tst_QDateTime::fromString() dt = QDateTime::fromString("2002-10-01", Qt::ISODate); QCOMPARE(dt, QDateTime(QDate(2002, 10, 1), QTime(0, 0, 0, 0))); - dt = QDateTime::fromString("1987-02-13T13:24:51+01:00", Qt::ISODate); - QCOMPARE(dt, QDateTime(QDate(1987, 2, 13), QTime(12, 24, 51), Qt::UTC)); - - dt = QDateTime::fromString("1987-02-13T13:24:51-01:00", Qt::ISODate); - QCOMPARE(dt, QDateTime(QDate(1987, 2, 13), QTime(14, 24, 51), Qt::UTC)); - dt = QDateTime::fromString("Thu Jan 1 00:12:34 1970 GMT"); QCOMPARE(dt.toUTC(), QDateTime(QDate(1970, 1, 1), QTime(0, 12, 34), Qt::UTC)); |