From d5d27aeac1bddd8858d21f7182330600a8081cce Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Sun, 22 Sep 2024 11:40:15 -0700 Subject: [PATCH] verify #203 --- src/ReadTask.spec.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ReadTask.spec.ts b/src/ReadTask.spec.ts index b4e1b52..73389b4 100644 --- a/src/ReadTask.spec.ts +++ b/src/ReadTask.spec.ts @@ -269,6 +269,21 @@ describe("ReadTask", () => { }) }) + it("respects zero HH:MM OffsetTime (see #203)", () => { + // this is not UTC, but it is used for "Atlantic/Reykjavik" and other zones + const t = parse({ + tags: { + OffsetTime: "+00:00", + DateTimeOriginal: "2016:08:12 13:28:50", + }, + }) + expect(t.DateTimeOriginal).to.containSubset({ + tzoffsetMinutes: 0, + zone: "UTC", + inferredZone: true, + }) + }) + it("finds positive array TimeZoneOffset and sets accordingly", () => { const t = parse({ tags: {