6tail / lunar-java

日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.
http://6tail.cn/calendar/api.html
MIT License
667 stars 152 forks source link

从1946年9月30号往前的日子,新历转农历的getDayInChinese都是返回错误 #10

Closed caoyanglee closed 2 years ago

caoyanglee commented 2 years ago

1946年9月30号 => 九月初五,实际上是九月初六才对。往前的日子都一样,按农历来算都是少一天!

版本:[v1.2.5]

6tail commented 2 years ago

能附上调用代码吗?我测试1946年9月30日是九月初六,没有你说的问题。

caoyanglee commented 2 years ago

最新版已经好了!