Bug 285212
| Summary: | [JSC] `Intl.DurationFormat` should print negative sign for minutes after hidden hours | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
input:
```
const df = new Intl.DurationFormat('en-US', {
style: "digital",
hoursDisplay: "auto",
})
print(df.format({ hours: 0, minutes: -2, seconds: -3 }));
```
expected output: `-02:03`
actual output: `02:03`
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/38404
EWS
Committed 288317@main (fb9e1dc79a67): <https://commits.webkit.org/288317@main>
Reviewed commits have been landed. Closing PR #38404 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/142119353>