1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

LibJS: Implement parsing of TemporalTimeString

This commit is contained in:
Linus Groh 2021-11-19 18:36:14 +00:00
parent b42b7d5f16
commit 453c78215c
5 changed files with 41 additions and 9 deletions

View file

@ -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);