chore(cpn): upgrade to Ubuntu 22.04 and Qt 6.9.0 (#5986)
Co-authored-by: elecpower <elecpower@users.noreply.github.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
elecpower
raphaelcoeffic
parent
7264b28e62
commit
9e86a3ea84
@@ -22,6 +22,7 @@
|
||||
#include "simulatedgps.h"
|
||||
#include <QtMath>
|
||||
#include <QDebug>
|
||||
#include <QTimeZone>
|
||||
|
||||
SimulatedGPS::SimulatedGPS()
|
||||
{
|
||||
@@ -109,7 +110,7 @@ void SimulatedGPS::update()
|
||||
return;
|
||||
}
|
||||
|
||||
dt = QDateTime::currentDateTime().toTimeSpec(Qt::UTC);
|
||||
dt = QDateTime::currentDateTime().toTimeZone(QTimeZone::utc());
|
||||
emitDateTimeChange();
|
||||
|
||||
double b2 = lat;
|
||||
@@ -140,7 +141,7 @@ void SimulatedGPS::update()
|
||||
lat = b3;
|
||||
lon = c3;
|
||||
|
||||
emitPositionChange();
|
||||
emitPositionChange();
|
||||
}
|
||||
|
||||
void SimulatedGPS::emitPositionChange()
|
||||
|
||||
Reference in New Issue
Block a user