Closed sxwailyc closed 1 year ago
发现
1991-05-12 00:00:00
这样就是错的
1991-05-12 01:00:00
这样就是对的
我测试是通过的,1991-05-12,为壬午。你这大概率是时区问题,从字符串转日期的吧?请参考: https://6tail.cn/calendar/api.html#faq.html
@Test public void test23(){ Solar solar = Solar.fromYmd(1991, 5, 12); Lunar lunar = solar.getLunar(); Assert.assertEquals("壬午", lunar.getDayInGanZhi()); }
确实是这个原因,非常👍
1992-05-12,用我们的库得到的日干支是: 辛巳
但我查了其它好多地方,都是: 壬午