patch of chinese lunar calc
This commit is contained in:
parent
e1fcc56178
commit
8a5313b5dc
@ -57,7 +57,7 @@ func ChineseLunar(date time.Time) (int, int, bool, string) {
|
||||
func Solar(year, month, day int, leap bool) time.Time {
|
||||
jde := basic.GetSolar(year, month, day, leap)
|
||||
zone := time.FixedZone("CST", 8*3600)
|
||||
return basic.JDE2DateByZone(jde, zone)
|
||||
return basic.JDE2DateByZone(jde, zone).Add(time.Hour * -8)
|
||||
}
|
||||
|
||||
// GanZhi 返回传入年份对应的干支
|
||||
|
Loading…
x
Reference in New Issue
Block a user