summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Zotti <Georg.Zotti@univie.ac.at>2022-05-14 18:27:32 +0200
committerGeorg Zotti <Georg.Zotti@univie.ac.at>2022-05-14 18:27:32 +0200
commit395db968800457a9027a064b9681a1e77ffa7835 (patch)
treea7bbc2ae121472b91e6a024bd787488f817480ff
parent6a7feb43dd9372a0d351c392b7f0a89e0920553d (diff)
Clarify that GRS JD is of course trated around UTC.AstroCalc-qcharts
-rw-r--r--src/core/modules/RotationElements.cpp1
-rw-r--r--src/gui/GreatRedSpotDialog.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/modules/RotationElements.cpp b/src/core/modules/RotationElements.cpp
index 73cd6fdd22..1264d3eca1 100644
--- a/src/core/modules/RotationElements.cpp
+++ b/src/core/modules/RotationElements.cpp
@@ -27,7 +27,6 @@
#include <QDebug>
// Also include the GRS corrections here
-//bool RotationElements::flagCustomGrsSettings = false; // OF COURSE this must become true forever...
double RotationElements::grsJD = 2456901.5;
double RotationElements::grsLongitude = 216.;
double RotationElements::grsDrift = 15.;
diff --git a/src/gui/GreatRedSpotDialog.cpp b/src/gui/GreatRedSpotDialog.cpp
index 240bb74d95..b46ea22c16 100644
--- a/src/gui/GreatRedSpotDialog.cpp
+++ b/src/gui/GreatRedSpotDialog.cpp
@@ -61,7 +61,8 @@ void GreatRedSpotDialog::createDialogContent()
const StelLocaleMgr& locmgr = StelApp::getInstance().getLocaleMgr();
QString fmt = QString("%1 hh:mm").arg(locmgr.getQtDateFormatStr());
ui->jdDateTimeEdit->setDisplayFormat(fmt);
- ui->jdDateTimeEdit->setDateTime(StelUtils::jdToQDateTime(ss->getGrsJD(), false)); // FIXME: false must become true! What are the consequences?
+ // qDebug() << "GRS: fmt:" << fmt << "datetime" << StelUtils::jdToQDateTime(ss->getGrsJD(), false); // was like that before. Wrong, zone time!
+ ui->jdDateTimeEdit->setDateTime(StelUtils::jdToQDateTime(ss->getGrsJD(), true)); // Of course this is true/UTC!
connect(ui->jdDateTimeEdit, SIGNAL(dateTimeChanged(QDateTime)), this, SLOT(setGrsJD(QDateTime)));
connect(ui->recentGrsMeasurementPushButton, SIGNAL(clicked(bool)), this, SLOT(openRecentGrsMeasurement()));