Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnbalanceDateDurationRelative: Return Date Duration Record but callers expect integer #2871

Closed
anba opened this issue Jun 3, 2024 · 0 comments · Fixed by #2896
Closed

UnbalanceDateDurationRelative: Return Date Duration Record but callers expect integer #2871

anba opened this issue Jun 3, 2024 · 0 comments · Fixed by #2896
Assignees
Labels
editorial spec-text Specification text involved
Milestone

Comments

@anba
Copy link
Contributor

anba commented Jun 3, 2024

UnbalanceDateDurationRelative, step 6:

  1. Return ? CreateDateDurationRecord(0, 0, 0, days + yearsMonthsWeeksInDays).

It don't think callers require days + yearsMonthsWeeksInDays to represent valid duration days, so the step can most likely be changed to just:

  1. Return days + yearsMonthsWeeksInDays.
@ptomato ptomato self-assigned this Jun 5, 2024
@ptomato ptomato added spec-text Specification text involved editorial labels Jun 5, 2024
@ptomato ptomato added this to the Stage "3.5" milestone Jun 5, 2024
ptomato added a commit that referenced this issue Jun 13, 2024
This operation returns a number of days, not a Date Duration Record.

Closes: #2871
Ms2ger pushed a commit that referenced this issue Jun 14, 2024
This operation returns a number of days, not a Date Duration Record.

Closes: #2871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial spec-text Specification text involved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants