Fix QtScript Date <--> QDateTime (local time) conversion
authorKent Hansen <kent.hansen@nokia.com>
Tue, 31 Aug 2010 09:15:30 +0000 (11:15 +0200)
committerKent Hansen <kent.hansen@nokia.com>
Tue, 31 Aug 2010 09:20:40 +0000 (11:20 +0200)
commitae574f7341f4f76a1f7de570cc3d56f77781e625
treefd85a743bfb3917380b6134ee2a0b92956e3b2ba
parenteb1015c7bbf135af3656110a4d112377c1209db8
Fix QtScript Date <--> QDateTime (local time) conversion

This has already been fixed in 4.7 (QTBUG-9770), but the change is
too big to backport.
The general idea is the same: Only operate on UTC dates internally
(since that's how JS dates are stored), and let QDateTime take care
of converting from/to local dates as necessary.

The fix itself shouldn't be merged to 4.7, but the autotests should.

Task-number: QTBUG-9770
Reviewed-by: Jedrzej Nowacki
src/script/utils/qscriptdate.cpp
tests/auto/qscriptengine/tst_qscriptengine.cpp