1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

LibJS: Implement parsing of TemporalDateString

This commit is contained in:
Linus Groh 2021-11-19 18:14:13 +00:00
parent 3f1af7c05f
commit 02e7de2cba
8 changed files with 27 additions and 13 deletions

View file

@ -50,8 +50,7 @@ describe("correct behavior", () => {
checkExpectedResults(withPlainDateZonedDateTime);
});
// FIXME: Enable when time string parsing is implemented.
test.skip("from plain date string", () => {
test("from plain date 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);