1
0
mirror of synced 2025-12-24 22:38:00 +08:00

修复阳历推移丢失时分的问题

This commit is contained in:
6tail
2020-04-16 23:59:50 +08:00
parent eb71ea3a56
commit bd6deaf3ec
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# lunar [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/lunar/blob/master/LICENSE)
# lunar [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/lunar-java/blob/master/LICENSE)
lunar是一款无第三方依赖的公历(阳历)和农历(阴历、老黄历)工具,支持星座、干支、生肖、节气、节日、彭祖百忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。

View File

@@ -1,4 +1,4 @@
# lunar [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/lunar/blob/master/LICENSE)
# lunar [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/lunar-java/blob/master/LICENSE)
lunar is a calendar library for Solar and Chinese Lunar.

View File

@@ -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);
}