Skip to content

Commit

Permalink
test for #216
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Oct 7, 2024
1 parent 669a411 commit 697e2f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ReadTask.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,18 @@ describe("ReadTask", () => {
})
})

describe("read timezone offset from XMP", () => {
it("reads timezone offset +00:00", async () => {
const t = await new ExifTool({inferTimezoneFromDatestamps: true}).read(join(testDir, "offset0.jpg.xmp"))
expect(t.tz).to.eql("UTC+0")
})

it("reads timezone offset +01:00", async () => {
const t = await new ExifTool({inferTimezoneFromDatestamps: true}).read(join(testDir, "offset1.jpg.xmp"))
expect(t.tz).to.eql("UTC+1")
})
})

// https://github.com/photostructure/exiftool-vendored.js/issues/113
describe("timezone parsing", () => {
const input = {
Expand Down

0 comments on commit 697e2f9

Please sign in to comment.