diff options
author | Matthew Vogt <matthew.vogt@nokia.com> | 2012-06-04 15:32:32 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-05 04:35:50 +0200 |
commit | 2d1fc405b4048560a6f80add6ee6492fa934c91f (patch) | |
tree | 61088efa7a2e75092562e169f2ac14df7be599bd /src/qml/qml/qqmllocale_p.h | |
parent | 805c30e809a86cc1feabeb3bdbee943a7bbf8796 (diff) |
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>
Diffstat (limited to 'src/qml/qml/qqmllocale_p.h')
-rw-r--r-- | src/qml/qml/qqmllocale_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmllocale_p.h b/src/qml/qml/qqmllocale_p.h index c701c1ca1c..7007770245 100644 --- a/src/qml/qml/qqmllocale_p.h +++ b/src/qml/qml/qqmllocale_p.h @@ -66,6 +66,7 @@ private: static v8::Handle<v8::Value> fromLocaleString(const v8::Arguments& args); static v8::Handle<v8::Value> fromLocaleTimeString(const v8::Arguments& args); static v8::Handle<v8::Value> fromLocaleDateString(const v8::Arguments& args); + static v8::Handle<v8::Value> timeZoneUpdated(const v8::Arguments& args); }; |