1
0
mirror of synced 2025-12-29 00:37:59 +08:00

v1.3.9 修复星期错误的问题。

This commit is contained in:
6tail
2023-11-09 11:58:29 +08:00
parent 9e36b0739c
commit a17402241a
6 changed files with 17 additions and 5 deletions

View File

@@ -358,7 +358,7 @@ public class Solar {
* @return 0123456
*/
public int getWeek() {
return ((int)getJulianDay() + 7000002) % 7;
return ((int)(getJulianDay() + 0.5) + 7000001) % 7;
}
/**