mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
LibJS: Implement parsing of TemporalTimeString
This commit is contained in:
parent
b42b7d5f16
commit
453c78215c
5 changed files with 41 additions and 9 deletions
|
@ -98,8 +98,7 @@ describe("correct behavior", () => {
|
|||
);
|
||||
});
|
||||
|
||||
// FIXME: This currently yields an incorrect result (epochNanoseconds = 1635984000000000000)
|
||||
test.skip("from plain time string", () => {
|
||||
test("from plain time string", () => {
|
||||
const plainDateTime = new Temporal.PlainDateTime(2021, 11, 4, 21, 16, 56, 100, 200, 300);
|
||||
const timeZone = new Temporal.TimeZone("UTC");
|
||||
const zonedDateTime = plainDateTime.toZonedDateTime(timeZone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue