Skip to content

Commit

Permalink
Fix: attempt to add more EXIF-fields, see #2296
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Dec 2, 2024
1 parent b23b216 commit a87e9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logic/ImageProviders/Panoramax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class PanoramaxUploader implements ImageUploader {
lat = exifLat
lon = exifLon
}
const [date, time] = tags.DateTime.value[0].split(" ")
const [date, time] =( tags.DateTime.value[0] ?? tags.DateTimeOriginal.value[0] ?? tags.GPSDateStamp ?? tags["Date Created"]).split(" ")
const exifDatetime = new Date(date.replaceAll(":", "-") + "T" + time)
if (exifDatetime.getFullYear() === 1970) {
// The data probably got reset to the epoch
Expand Down

0 comments on commit a87e9e2

Please sign in to comment.