1. 补充农历覆盖到公元前104年

2. 修正时区导致的计算问题
This commit is contained in:
2025-09-15 23:40:09 +08:00
parent d6b6452304
commit 3389c33cb5
6 changed files with 29 additions and 13 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ recalc:
if useGoto {
calcYear++
}
target := time.Date(calcYear, time.Month(month), day, 0, 0, 0, 0, time.Local)
target := time.Date(calcYear, time.Month(month), day, 0, 0, 0, 0, getCst())
diffDay := int(target.Sub(springDate).Hours() / 24)
//go语言在; 1582年10月4日前,使用的是逆推格里高利历,与实际使用的儒略历有所不同,主要体现在百年闰年计算上!
//儒略历修正