aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/jsruntime/qv4dateobject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4dateobject.cpp b/src/qml/jsruntime/qv4dateobject.cpp
index f2e7573452..fc94862bfd 100644
--- a/src/qml/jsruntime/qv4dateobject.cpp
+++ b/src/qml/jsruntime/qv4dateobject.cpp
@@ -627,6 +627,7 @@ static double getLocalTZA()
#ifndef Q_OS_WIN
struct tm t;
time_t curr;
+ tzset();
time(&curr);
localtime_r(&curr, &t);
time_t locl = mktime(&t);