Skip to content

polyfill: rounding large duration to days causes 1 day error #3259

@fabon-f

Description

@fabon-f
// expected value is P100017D, but the reference polyfill returns P100016D
Temporal.Duration.from('P100016DT0.0000001S').round({ smallestUnit: 'day', roundingMode: 'ceil' });

SpiderMonkey and V8 returns P100017D, but the reference polyfill returns P100016D. I believe SM and V8 is spec-compliant, but perhaps I'm wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions