Bug 301724
| Summary: | Temporal: Wrong result with instant rounding and halfCeil rounding mode | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Chevalier <tjc> |
| Component: | JavaScriptCore | Assignee: | Tim Chevalier <tjc> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Tim Chevalier
The following:
```
Temporal.Instant.from("1938-04-24T22:13:20Z").round({smallestUnit: 'hour', roundingIncrement: 1, roundingMode: 'halfCeil' })
```
should print
```
1938-04-24T22:00:00Z
```
but the result in JSC is:
```
1938-04-24T23:00:00Z
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tim Chevalier
Pull request: https://github.com/WebKit/WebKit/pull/53228
EWS
Committed 302403@main (045895518592): <https://commits.webkit.org/302403@main>
Reviewed commits have been landed. Closing PR #53228 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/163816260>