mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Use the et2utc function in case the normal date conversion fails
This commit is contained in:
@@ -557,6 +557,12 @@ public:
|
||||
ephemerisTime, format
|
||||
));
|
||||
}
|
||||
|
||||
if (outBuf[0] == '*') {
|
||||
// The conversion failed and we need to use et2utc
|
||||
constexpr int SecondsPrecision = 3;
|
||||
et2utc_c(ephemerisTime, "C", SecondsPrecision, bufferSize, outBuf);
|
||||
}
|
||||
}
|
||||
|
||||
std::string dateFromEphemerisTime(double ephemerisTime, const char* format);
|
||||
|
||||
Reference in New Issue
Block a user