v1.2.7 修复儒略日转阳历秒数为60的错误。
This commit is contained in:
@@ -156,6 +156,14 @@ public class Solar {
|
||||
f -= minute;
|
||||
f *= 60;
|
||||
int second = (int) Math.round(f);
|
||||
if (second > 59) {
|
||||
second -= 60;
|
||||
minute++;
|
||||
}
|
||||
if (minute > 59) {
|
||||
minute -= 60;
|
||||
hour++;
|
||||
}
|
||||
|
||||
calendar = ExactDate.fromYmdHms(year, month, day, hour, minute, second);
|
||||
this.year = year;
|
||||
|
||||
Reference in New Issue
Block a user