1
0
mirror of synced 2025-12-25 23:08:00 +08:00

v1.2.7 修复儒略日转阳历秒数为60的错误。

This commit is contained in:
6tail
2021-10-20 20:46:42 +08:00
parent fc0a6291d1
commit a783dbd93f
5 changed files with 26 additions and 49 deletions

View File

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