Skip to content

Commit

Permalink
First try at parsing the timezone information for the sony A7 camera
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsmit committed Jun 12, 2024
1 parent c7b72d6 commit 89def49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Timezones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ export function extractTzOffsetFromUTCOffset(
| "DateTimeUTC"
| "GPSDateStamp"
| "GPSTimeStamp"
| "Sony Date Time 2"
>
): Maybe<TzSrc> {
const utcSources = {
Expand All @@ -444,7 +445,7 @@ export function extractTzOffsetFromUTCOffset(

// We can always assume these are in UTC:
const utc = first(
["GPSDateTime", "DateTimeUTC", "GPSDateTimeStamp"] as const,
["GPSDateTime", "DateTimeUTC", "GPSDateTimeStamp", "Sony Date Time 2"] as const,
(tagName) => {
const v = utcSources[tagName]
const edt = v instanceof ExifDateTime ? v : ExifDateTime.fromExifStrict(v)
Expand Down

0 comments on commit 89def49

Please sign in to comment.