From 740ea12cb0a484044351edba246b3af273da7a04 Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Mon, 26 Feb 2024 00:12:16 -0500 Subject: [PATCH] Time zones are hard --- test/fixtures/default/index.liquid | 2 +- test/index.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixtures/default/index.liquid b/test/fixtures/default/index.liquid index 782347d..2737805 100644 --- a/test/fixtures/default/index.liquid +++ b/test/fixtures/default/index.liquid @@ -1,2 +1,2 @@ {{ "2024-02-25 23:15Z" | date }} -{{ "2024-02-25 23:15" | date: "%H:%M:%S", "America/New_York" }} +{{ "2024-02-25 23:15Z" | date: "%H:%M:%S", "America/New_York" }} diff --git a/test/index.test.js b/test/index.test.js index adec819..29d9e82 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -7,7 +7,7 @@ test("default plugin configuration", async () => { const eleventy = new Eleventy("test/fixtures/default", null, { configPath: "index.js" }); const results = await eleventy.toJSON(); - assert.strictEqual(results[0].content, "2024-02-25T23:15:00.000+00:00\n23:15:00\n"); + assert.strictEqual(results[0].content, "2024-02-25T23:15:00.000+00:00\n18:15:00\n"); }); test("globals option", async () => {