Skip to content

Commit

Permalink
fix: 修复错误的浮点误差措施
Browse files Browse the repository at this point in the history
  • Loading branch information
iugo committed Jan 29, 2024
1 parent a8933e5 commit c158efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export function getWeekday(

const beforeWeekday = before.getDay();
const afterWeekday = after.getDay();
const weeks = Math.floor(
const weeks = Math.round(
(
days -
(8 - beforeWeekday) % 7 -
Expand Down

0 comments on commit c158efa

Please sign in to comment.