Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9
-
None
-
6c543879a31d7d13a6b87e6332f6913f2f89f5e6 (qt/qtbase/dev)
Description
When constructing a QDateTime object with Qt::TimeSpec Qt::LocalTime it calls mktime somewhere down the line. This function will according to spec call tzset and subsequently read the TZ environment variable.
Therefore the call to mktime (and probably some other libc-functions) should also be guarded with the same mutex guarding qgetenv/qsetenv.