Skip to content

Commit

Permalink
Time zones are hard
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Feb 26, 2024
1 parent dfd40e0 commit 740ea12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/default/index.liquid
Original file line number Diff line number Diff line change
@@ -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" }}
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 740ea12

Please # to comment.