Allow the global JS UTC offset to be invalidated
authorMatthew Vogt <matthew.vogt@nokia.com>
Mon, 4 Jun 2012 05:32:32 +0000 (15:32 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 02:35:50 +0000 (04:35 +0200)
commit2d1fc405b4048560a6f80add6ee6492fa934c91f
tree61088efa7a2e75092562e169f2ac14df7be599bd
parent805c30e809a86cc1feabeb3bdbee943a7bbf8796
Allow the global JS UTC offset to be invalidated

If the system timezone is changed, it is necessary to inform
V8 so that the global offset-from-UTC value can be recalculated.
This changes adds the 'timeZoneUpdated' function to the JS
'Date' class exported by QML, which allows QML applications to
inform V8 when the timezone has been updated.

Change-Id: Ic5898ca7bc640002a4a6fd5a52b8623d87ee8085
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/doc/src/types/qmldate.qdoc
src/qml/qml/qqmllocale.cpp
src/qml/qml/qqmllocale_p.h
tests/auto/qml/qqmllocale/data/timeZoneUpdated.qml [new file with mode: 0644]
tests/auto/qml/qqmllocale/tst_qqmllocale.cpp