Skip to content

Commit

Permalink
(Forehead slap) Time was converted from TD to UTC, when it should hav…
Browse files Browse the repository at this point in the history
…e been from UTC to TD
  • Loading branch information
Bill-Gray committed Mar 26, 2024
1 parent 485efae commit 17821ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elem_out.cpp
Expand Up @@ -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.;
Expand Down

0 comments on commit 17821ae

Please sign in to comment.