My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Temporal] Fix maximum ZonedDateTime values in test

The test had a ZonedDateTime value that was out of bounds, but wasn't
noticed due to a bug in the polyfill. Fix it to be the actual
maximum date/time.

authored by

Tim Chevalier and committed by
Ms2ger
3548e7f3 ab6166fb

+2 -2
+2 -2
vendor/git/test262/test/built-ins/Temporal/Duration/prototype/total/relativeto-date-limits.js
··· 33 33 "maximum date is a valid ISO string for PlainDateTime relativeTo" 34 34 ); 35 35 36 - relativeTo = "+275760-09-12T23:59:60+00:00[UTC]"; 36 + relativeTo = "+275760-09-12T00:00:00+00:00[UTC]"; 37 37 const result4 = instance.total({ unit: "days", relativeTo }); 38 38 assert.sameValue( 39 39 result4, ··· 65 65 "minimum date is valid in a property bag for ZonedDateTime relativeTo" 66 66 ); 67 67 68 - relativeTo = { year: 275760, month: 9, day: 12, hour: 23, minute: 59, second: 60, timeZone: "UTC" }; 68 + relativeTo = { year: 275760, month: 9, day: 12, hour: 0, minute: 0, second: 0, timeZone: "UTC" }; 69 69 const result8 = instance.total({ unit: "days", relativeTo }); 70 70 assert.sameValue( 71 71 result8,