修复阳历推移丢失时分的问题
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# lunar [](https://github.com/6tail/lunar/blob/master/LICENSE)
|
||||
# lunar [](https://github.com/6tail/lunar-java/blob/master/LICENSE)
|
||||
|
||||
lunar是一款无第三方依赖的公历(阳历)和农历(阴历、老黄历)工具,支持星座、干支、生肖、节气、节日、彭祖百忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# lunar [](https://github.com/6tail/lunar/blob/master/LICENSE)
|
||||
# lunar [](https://github.com/6tail/lunar-java/blob/master/LICENSE)
|
||||
|
||||
lunar is a calendar library for Solar and Chinese Lunar.
|
||||
|
||||
|
||||
@@ -390,7 +390,7 @@ public class Solar{
|
||||
*/
|
||||
public Solar next(int days){
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.set(year,month-1,day);
|
||||
c.set(year,month-1,day,hour,minute,0);
|
||||
c.add(Calendar.DATE,days);
|
||||
return new Solar(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user