yuming
|
030e587480
|
修复日历跨年不显示纪念日
部署到群晖 / deploy (push) Successful in 40s
原 buildEventIndex / loadMonthEvents 用 a.solarYear === year 判断,
只匹配纪念日原始录入年份的那一年。生日/纪念日是周年性事件,应
每年这天都出现。
- 去掉 solarYear === year 判断
- 新增 getAnniversaryDateInYear():公历直接用 solarMonth/solarDay
- 农历用 lunarToSolar 重算当年公历,因农历对应公历每年浮动
- 当年无闰月时 lunarToSolar 自动忽略 isLeap 回退普通月
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-06-02 13:35:20 +08:00 |
|