Fix qqmllocale test to use correct spec and time zone
authorJohn Layt <jlayt@kde.org>
Tue, 3 Sep 2013 18:40:49 +0000 (20:40 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 5 Sep 2013 08:41:56 +0000 (10:41 +0200)
commit8784a4a46ea1357bde546c9a1c88bd060e863f30
tree66f8e2689b08da3d03592bc3906c4778e58efef4
parent87ccf530772caa5d388d97b556183fb20930ef38
Fix qqmllocale test to use correct spec and time zone

By including the +10:00 offset in the date strings the test is actually
creating Qt::OffsetFromUTC datetimes, not QT::LocalTime datetimes. The
only reason the test currently passes is due to a bug in the QLocale
datetime formatter which uses the current system daylight time
abbreviation in all cases regardless of the datetime spec or if
daylight or standard time.  Change 61774 fixes this bug but cannot
be merged as this test now fails.  This change fixes the bug by
removing the offset, causing Qt:LocalTime datetimes to be created
which pass the test both before and after change 61774.

See https://codereview.qt-project.org/#change,61774

Change-Id: I1642ab7c8aa516b703216f3791e2fc60866d1895
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
tests/auto/qml/qqmllocale/data/timeZoneUpdated.qml