aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/exportDate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/exportDate.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/exportDate.qml2
1 files changed, 1 insertions, 1 deletions
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