Closed qgis2000 closed 1 week ago
Will be fixed with the next update.
Please test the latest git version. Hopefully you can confirm the time is now correctly shown.
I can't compile the latest version now:
../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setStartTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:84:80: error: incomplete type ‘QTimeZone’ used in nested name specifier QDateTime start = QDateTime::fromSecsSinceEpoch(timeStart.time, QTimeZone::UTC); ^~~ ../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setEndTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:104:76: error: incomplete type ‘QTimeZone’ used in nested name specifier QDateTime end = QDateTime::fromSecsSinceEpoch(timeEnd.time, QTimeZone::UTC); ^~~ *** Error code 1
Which Qt version do you use? Qt5?
I changed to code to include
Qt5. I can't compile either. Maybe utc() instead of UTC?
../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setStartTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:85:80: error: ‘UTC’ is not a member of ‘QTimeZone’ QDateTime start = QDateTime::fromSecsSinceEpoch(timeStart.time, QTimeZone::UTC); ^~~ ../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setEndTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:105:76: error: ‘UTC’ is not a member of ‘QTimeZone’ QDateTime end = QDateTime::fromSecsSinceEpoch(timeEnd.time, QTimeZone::UTC); ^~~ *** Error code 1
Yes, you are right. I have tested it only against Qt6, but for Qt5 you have to use utc(). It should now compile with Qt5, too.
BTW: there are also some fixes for the other issues reported by you committed.
I tested it. All right. Thank you.
The Time Span/Interval... window shows the start time shifted in relation to the Plot Type=Position chart.