Closed mrbrianevans closed 10 months ago
I'm facing a similar issue:
This code:
console.log(
Temporal.PlainTime.from("15:30:37").toLocaleString([], {
timeStyle: "short"
})
);
results in this error:
TypeError: Can't set option hour when timeStyle is used
Codesandbox link: https://codesandbox.io/s/temporal-and-lodash-update-forked-dohu6n?file=/src/index.js
Perhaps this issue is relevant?
Also, it seems to work fine with Javascript Intl.
API. And tried PlainDateTime
, but it's the same issue.
Confirmed, I'll fix this
Hi there, I've been using your polyfill and I think I've noticed an unexpected error that occurs when formatting a date time. This error does not occur in the spec playground.
To reproduce
Run
Expected behaviour
In the official spec playground, the output is:
Actual behaviour
When run with this polyfill, it produces this error: