mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-08 18:18:38 +08:00
修复ChineseDate 闰年闰月节日获取问题
This commit is contained in:
parent
e6e32a76b9
commit
8ad16be6cb
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user