Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11.3
-
None
-
-
b1e78d739752a044765776a59161809011875a5c (qt/qtlocation/dev)
Description
I tested on 5.11.3 but I see the problematic code is the same in 5.13 branch.
Techinfo:
Code in qgeopositioninfosource_cl.mm uses default constructor of QDateTime which has default Qt::LocalTime timespec default. Then it call setTime_t (followed by addMSecs).
From the first look the best fix would be to call the following overload instead of setTime_t+addMSecs:
static QDateTime QDateTime::fromMSecsSinceEpoch(qint64 msecs, Qt::TimeSpec spec, int offsetFromUtc = 0);
And pass Qt::UTC timespec.
Attachments
For Gerrit Dashboard: QTBUG-73651 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
265171,3 | QGeoPositionInfoSourceCL: Initialize location timestamp with UTC time spec | dev | qt/qtlocation | Status: MERGED | +2 | 0 |