Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.2, 6.8.0
-
-
5
-
Foundation PM Staging
Description
When daylight saving time is in effect, there is one hour of local clock time that will be repeated when transitioning back from DST to standard time. The first instance of this hour should have the DST time zone, while the second instance should have the standard time zone. Unfortunately, QDateTime::currentDateTime uses the standard time zone for both instances.
QDateTime::currentDateTime() calls GetLocalTime, which will return exactly the same values for both cases, without reference to a time zone. The new QDateTime instance constructed from these values does not get a time zone parameter either, so both cases will necessarily set the same time zone.