Skip to content

Commit

Permalink
verify #203
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Sep 22, 2024
1 parent 6c9c4a8 commit d5d27ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ReadTask.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit d5d27ae

Please sign in to comment.