Skip to content

Commit

Permalink
test: adds +0100 Z token format test
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-schroeder committed Feb 21, 2024
1 parent 2eae438 commit b5dd82d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/__tests__/format.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,12 @@ describe("format with a timezone", () => {
tz: "America/New_York",
})
).toBe("20 10:15 am -0500")
expect(
format({
date: new Date("2024-02-16T11:00:00Z"),
format: "YYYY-MM-DDTHH:mm:ssZ",
tz: "Europe/Stockholm",
})
).toBe("2024-02-16T12:00:00+0100")
})
})

0 comments on commit b5dd82d

Please sign in to comment.