mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
Fix satellite tracks when timezone isn't UTC
This commit is contained in:
parent
842546aec6
commit
9734511c50
@ -23,6 +23,8 @@
|
|||||||
#include <Observer.h>
|
#include <Observer.h>
|
||||||
#include <SGP4.h>
|
#include <SGP4.h>
|
||||||
|
|
||||||
|
#include <QTimeZone>
|
||||||
|
|
||||||
#include "util/units.h"
|
#include "util/units.h"
|
||||||
|
|
||||||
#include "satellitetrackersgp4.h"
|
#include "satellitetrackersgp4.h"
|
||||||
@ -62,7 +64,7 @@ void getGroundTrack(QDateTime dateTime,
|
|||||||
// For 3D map, we want to quantize to minutes, so we replace previous
|
// For 3D map, we want to quantize to minutes, so we replace previous
|
||||||
// position data, rather than insert additional positions alongside the old
|
// position data, rather than insert additional positions alongside the old
|
||||||
// which can result is the camera view jumping around
|
// which can result is the camera view jumping around
|
||||||
dateTime = QDateTime(dateTime.date(), QTime(dateTime.time().hour(), dateTime.time().minute()));
|
dateTime = QDateTime(dateTime.date(), QTime(dateTime.time().hour(), dateTime.time().minute()), dateTime.timeZone());
|
||||||
|
|
||||||
// Note 2D map doesn't support paths wrapping around Earth several times
|
// Note 2D map doesn't support paths wrapping around Earth several times
|
||||||
// So we just have a slight overlap here, with the future track being longer
|
// So we just have a slight overlap here, with the future track being longer
|
||||||
|
Loading…
Reference in New Issue
Block a user