From 2bd64a5c6580d4baab37ad02b23bd6ca00b84922 Mon Sep 17 00:00:00 2001 From: ren yuze Date: Thu, 4 Mar 2021 18:44:21 +0800 Subject: [PATCH] bug fix --- basic/moon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/moon.go b/basic/moon.go index 6de3f8a..b02c27c 100644 --- a/basic/moon.go +++ b/basic/moon.go @@ -1421,7 +1421,7 @@ func GetMoonRiseTime(JD, Lon, Lat, TZ, ZS float64) float64 { } if moonheight < 0 && moonang > 180 { tms = (180 - moonang) / 15 - JD1 = JD1 - (tms/24 + (tms/24*12.0)/15.0/24.0) + JD1 += (tms/24 + (tms/24*12.0)/15.0/24.0) } else if moonheight < 0 && moonang < 180 { tms = (180 - moonang) / 15 JD1 += (tms/24 + (tms/24*12.0)/15.0/24.0)