Skip to content

Commit

Permalink
further fix dayOfWeek problem
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Feb 6, 2024
1 parent bf2fa87 commit 5a488a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/temporal-polyfill/src/internal/isoMath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function computeIsoDayOfWeek(isoDateFields: IsoDateFields): number {
isoDateFields.isoDay,
)

return modFloor(legacyDate.getUTCDay() + 1 - nudge, 7) || 7
return modFloor(legacyDate.getUTCDay() - nudge, 7) || 7
}

export function computeIsoYearOfWeek(isoDateFields: IsoDateFields): number {
Expand Down

0 comments on commit 5a488a4

Please sign in to comment.