修复QuarterfromMonth计算错误问题(issue#IF15CP@Gitee)

This commit is contained in:
Looly
2026-03-05 09:06:39 +08:00
parent 52603f3b12
commit af5f2d97b6
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.44(2026-03-02)
# 5.8.44(2026-03-05)
### 🐣新特性
* 【core 】 `NumberUtil.parseNumber`增加支持科学计数法pr#4211@Github
* 【captcha】 `AbstractCaptcha`增加`setStroke`方法支持线条粗细issue#IDJQ15@Gitee
@@ -22,6 +22,7 @@
* 【core 】 修复`ReUtil.replaceAll`空指针问题issue#IDPHVW@Gitee
* 【core 】 修复`EnumUtil`枚举类静态初始化时触发 Recursive update 异常pr#1432@Gitee
* 【core 】 修复`AbstractCache`高并发下 get+supplier 双重检查锁逻辑缺陷pr#1432@Gitee
* 【core 】 修复`Quarter`fromMonth计算错误问题issue#IF15CP@Gitee
-------------------------------------------------------------------------------------------------------------
# 5.8.43(2026-01-04)

View File

@@ -96,7 +96,7 @@ public enum Quarter {
*/
public static Quarter fromMonth(Month month) {
Assert.notNull(month);
final int monthValue = month.getValue();
final int monthValue = month.getValueBaseOne();
return of(computeQuarterValueInternal(monthValue));
}