We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The AdjustRoundedDurationDays function has special behavior for balancing-up time units during a ZDT days:
AdjustRoundedDurationDays
proposal-temporal/polyfill/lib/ecmascript.mjs
Lines 5262 to 5269 in 2c9979f
FullCalendar's temporal-polyfill has an incorrect implementation of this not caught by tests. It'd be great to improve test coverage.
dur = Temporal.Duration.from({ hours: 13 }) zdt = Temporal.ZonedDateTime.from('2024-03-10T00:00:00[America/New_York]') // a 23-hour day roundedDur = dur.round({ relativeTo: zdt, largestUnit: 'years', smallestUnit: 'hours', roundingIncrement: 12, roundingMode: 'ceil' }) // EXPECTED: { days: 1, hours: 12 }
Things work fine in the reference implementation.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
AdjustRoundedDurationDays
function has special behavior for balancing-up time units during a ZDT days:proposal-temporal/polyfill/lib/ecmascript.mjs
Lines 5262 to 5269 in 2c9979f
FullCalendar's temporal-polyfill has an incorrect implementation of this not caught by tests. It'd be great to improve test coverage.
Things work fine in the reference implementation.
The text was updated successfully, but these errors were encountered: