1
0
mirror of synced 2026-10-15 11:06:11 +08:00

v1.2.25 修复春节和立春之间月干错误的问题。

This commit is contained in:
6tail
2022-10-12 21:08:06 +08:00
parent 1aefcdcf0c
commit a16767e2c7
6 changed files with 34 additions and 5 deletions

View File

@@ -183,6 +183,9 @@ public class Lunar {
this.second = second;
Solar noon = Solar.fromJulianDay(m.getFirstJulianDay() + lunarDay - 1);
this.solar = Solar.fromYmdHms(noon.getYear(), noon.getMonth(), noon.getDay(), hour, minute, second);
if (noon.getYear() != lunarYear) {
y = LunarYear.fromYear(noon.getYear());
}
compute(y);
}