aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2012-10-29 09:30:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-29 12:17:09 +0100
commit0baccec7b4c3a7487dc6ca7c3d6b71130b916efc (patch)
treec2f1fe777416ae1caab9f36ed12680aa8380b786
parent3bb681153502b1a97c839bf2931244b0246f376a (diff)
Test: Fix tst_qqmlecmascript::exportDate
Get timezone offset of the date specified and not the default value. Change-Id: I58dba896098cbee72a2e4ec15ba2c928121e6cff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r--tests/auto/qml/qqmlecmascript/data/exportDate.2.qml2
-rw-r--r--tests/auto/qml/qqmlecmascript/data/exportDate.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/exportDate.2.qml b/tests/auto/qml/qqmlecmascript/data/exportDate.2.qml
index 8ad75aabb0..4420cf846c 100644
--- a/tests/auto/qml/qqmlecmascript/data/exportDate.2.qml
+++ b/tests/auto/qml/qqmlecmascript/data/exportDate.2.qml
@@ -12,7 +12,7 @@ MyTypeObject {
// The test date is 2009-5-12 23:59:59 (local time)
var compare = new Date(2009, 5-1, 12, 23, 59, 59)
- var compareOffset = new Date().getTimezoneOffset()
+ var compareOffset = compare.getTimezoneOffset()
// The date is already in local time, so we can use the partial values directly
var dtAdjusted = dt
diff --git a/tests/auto/qml/qqmlecmascript/data/exportDate.qml b/tests/auto/qml/qqmlecmascript/data/exportDate.qml
index 13b35a9cb8..c42b092fc7 100644
--- a/tests/auto/qml/qqmlecmascript/data/exportDate.qml
+++ b/tests/auto/qml/qqmlecmascript/data/exportDate.qml
@@ -12,7 +12,7 @@ MyTypeObject {
// The test date is 2009-5-12 00:00:01 (local time)
var compare = new Date(2009, 5-1, 12, 0, 0, 1)
- var compareOffset = new Date().getTimezoneOffset()
+ var compareOffset = compare.getTimezoneOffset()
// The date is already in local time, so we can use the partial values directly
var dtAdjusted = dt