diff --git a/src/gswe-moment.c b/src/gswe-moment.c index 05e16a4..9dc37d6 100644 --- a/src/gswe-moment.c +++ b/src/gswe-moment.c @@ -523,7 +523,7 @@ gswe_moment_calculate_house_positions(GsweMoment *moment, GError **err) return; } - jd = gswe_timestamp_get_julian_day(moment->priv->timestamp, err); + jd = gswe_timestamp_get_julian_day_et(moment->priv->timestamp, err); // If Julian Day calculation yields error, we don't do anything. err is // already filled with the error message, so let's just return @@ -679,7 +679,7 @@ gswe_moment_calculate_planet(GsweMoment *moment, GswePlanet planet, GError **err } swe_set_topo(moment->priv->coordinates.longitude, moment->priv->coordinates.latitude, moment->priv->coordinates.altitude); - jd = gswe_timestamp_get_julian_day(moment->priv->timestamp, err); + jd = gswe_timestamp_get_julian_day_et(moment->priv->timestamp, err); if (planet_data->planet_info->real_body == FALSE) { if ( diff --git a/src/gswe-moon-phase-data.c b/src/gswe-moon-phase-data.c index e3f02f7..1faabf8 100644 --- a/src/gswe-moon-phase-data.c +++ b/src/gswe-moon-phase-data.c @@ -102,7 +102,7 @@ gswe_moon_phase_data_calculate_by_jd(GsweMoonPhaseData *moon_phase_data, gdouble gdouble jdb, phase_percent; - jdb = gswe_timestamp_get_julian_day(gswe_full_moon_base_date, err); + jdb = gswe_timestamp_get_julian_day_et(gswe_full_moon_base_date, err); if ((err) && (*err)) { return; @@ -152,7 +152,7 @@ gswe_moon_phase_data_calculate_by_timestamp(GsweMoonPhaseData *moon_phase_data, { gdouble jd; - jd = gswe_timestamp_get_julian_day(timestamp, err); + jd = gswe_timestamp_get_julian_day_et(timestamp, err); if (*err) { return; diff --git a/src/gswe-timestamp.c b/src/gswe-timestamp.c index 2afb3e2..6edcd2e 100644 --- a/src/gswe-timestamp.c +++ b/src/gswe-timestamp.c @@ -1056,7 +1056,7 @@ gswe_timestamp_new_from_julian_day(gdouble julian_day) { GsweTimestamp *timestamp = gswe_timestamp_new(); - gswe_timestamp_set_julian_day(timestamp, julian_day); + gswe_timestamp_set_julian_day_et(timestamp, julian_day, NULL); return timestamp; }