1
0
mirror of synced 2026-10-28 17:36:12 +08:00

v1.3.13 修复节气当天获取下一节气仍为当前节气的问题;修复每日宜忌存在重复项的问题;修复八字转阳历存在遗漏的问题。

This commit is contained in:
6tail
2024-02-29 11:59:27 +08:00
parent 1c3ff0cbc5
commit 0a4d172ef6
8 changed files with 78 additions and 21 deletions

View File

@@ -2380,7 +2380,7 @@ public class Lunar {
Solar solar = entry.getValue();
String day = wholeDay ? solar.toYmd() : solar.toYmdHms();
if (forward) {
if (day.compareTo(today) < 0) {
if (day.compareTo(today) <= 0) {
continue;
}
if (null == near) {