From 17821ae682e629ebc30fb11c0b169c66e8a35550 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Tue, 26 Mar 2024 11:11:05 -0400 Subject: [PATCH] (Forehead slap) Time was converted from TD to UTC, when it should have been from UTC to TD --- elem_out.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elem_out.cpp b/elem_out.cpp index 397a25ea..5f0bb5d7 100644 --- a/elem_out.cpp +++ b/elem_out.cpp @@ -3066,7 +3066,7 @@ static double extract_state_vect_from_text( const char *text, quantities_found |= FOUND_ECCENTRICITY; } else if( !_memicmp( text, "UTC", 3)) - epoch = utc_from_td( epoch, NULL); + epoch += td_minus_utc( epoch) / seconds_per_day; else if( !_memicmp( text, "TDB", 3)) { const double t_cen = (epoch - J2000) / 36525.;