This commit is contained in:
2025-01-31 15:35:36 +08:00
parent d479d39352
commit 1952df0c30
9 changed files with 19 additions and 42 deletions
-3
View File
@@ -143,9 +143,6 @@ recalc:
magic := int32(upper[idx])<<8 + int32(lower[idx])
springMonth := (magic&0x800000)>>23 + 1
springDay := (magic & 0x7FFFFF) >> 18
if springMonth == int32(month) && springDay == int32(day) {
return 1, 1, false, "正月初一"
}
if !useGoto && (springMonth > int32(month) || (springMonth == int32(month) && springDay > int32(day))) {
year--
useGoto = true