Fix consistency of parsing ISO 8601 date strings.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 21 Mar 2012 02:47:15 +0000 (12:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Mar 2012 03:05:38 +0000 (04:05 +0100)
commitb2722ab31e524fc223a332fc0574e4b66c716b20
tree00c52bd1520249db35339b5c052cb064d8e6869c
parentd6bc3b59077bf5d9e0cb734d093e0f354cee096c
Fix consistency of parsing ISO 8601 date strings.

Use the UTC timespec for strings with no time zone qualifier as V8 does
so we don't get different QDateTime in bindings depending on whether
the string was bound directly, or parsed by constructing a new JS
Date object.

Task-number: QTBUG-24895
Change-Id: I8f74dae418aaeeaf06df33fe58ab4e3e3fea791b
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/qqmlstringconverters.cpp
tests/auto/qml/qqmlecmascript/data/assignDate.2.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/assignDate.3.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/assignDate.4.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/assignDate.5.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/assignDate.6.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/assignDate.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp