Simplify date conversion functions
authorMatthew Vogt <matthew.vogt@nokia.com>
Tue, 10 Apr 2012 07:12:58 +0000 (17:12 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Apr 2012 01:35:15 +0000 (03:35 +0200)
commit65bfc35429e845cf6b76d58107360a1360a654fc
tree0695964cfcc346137823d94de351cf8812a33bf4
parent80872d0a450d4179e66121d8efe01929ad56fb05
Simplify date conversion functions

Do not use the 3rd-party code from JSC, but instead use the QDateTime
functions for millisecond offsets from the epoch.

Note that this change is reviving the earlier change:
http://codereview.qt-project.org/1874.  The test failures for that
change no longer occur due to a change in the QDateTime behavior
applied by: http://codereview.qt-project.org/13169

There is still a semantic difference between QDateTime and the
ECMAScript specification with regards to the application of DST.
ECMAScript requires that the current DST adjustment should be applied
to historical dates, whereas QDateTime will apply the adjustment as
applicable at the epoch date to any prior dates.

Change-Id: Ibebd47c9d2b75a034342ffcda075501a6a527b8d
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/3rdparty/javascriptcore/COPYING.LIB [deleted file]
src/3rdparty/javascriptcore/DateMath.cpp [deleted file]
src/3rdparty/javascriptcore/DateMath.h [deleted file]
src/3rdparty/javascriptcore/VERSION [deleted file]
src/qml/qml/v8/qv8engine.cpp
src/qml/qml/v8/v8.pri
tests/auto/qml/qqmlqt/data/dateTimeConversion.qml
tests/auto/qml/qqmlqt/tst_qqmlqt.cpp