修复ChineseDate 闰年闰月节日获取问题

This commit is contained in:
Looly
2025-07-10 11:55:41 +08:00
parent f5910f9db4
commit fa8f1f2091

View File

@@ -345,7 +345,7 @@ public class ChineseDate {
* @return 获得农历节日
*/
public String getFestivals() {
return StrUtil.join(",", LunarFestival.getFestivals(this.year, this.month, day));
return StrUtil.join(",", LunarFestival.getFestivals(this.year, this.isLeapMonth ? this.month - 1 : this.month, day));
}
/**