bug fix:Chinese calendar display incorrect

This commit is contained in:
兔子 2021-03-04 12:25:04 +08:00
parent 8a5313b5dc
commit a9135de034

View File

@ -301,7 +301,11 @@ func GetLunar(year, month, day int) (lmonth, lday int, leap bool, result string)
if leap {
result += "闰"
}
result += strmonth[lmonth] + "月"
if lmonth == 1 {
result += "正月"
} else {
result += strmonth[lmonth] + "月"
}
if lday == 20 {
result += "二十"
} else if lday == 10 {