[Geotagging] How to bypass the timezone logic?

Started by Fi156, June 26, 2016, 05:39:30 AM

Previous topic - Next topic

Fi156

Hello guys,

everytime I use the geotagging option in Exiftool I am having huge problems with different timezones.

My usecase is very simple:
I have a photo which shows the actual UTC Time. >> GPStime
And I have another time in the exif tag. >> PhotoTime

Next I substract the PhotoTime from the GPStime. >> SubstractedTime

When I now use Exiftool with the following parameters:
exiftool -geotag GPXFileLoc -geosync=SubstractedTime -'geotime<ModifyDate' *.jpg

I will end up with a wrong result. I assume, that exiftool will always try to apply some Timezone shifting to my input.

How can I prevent this behaviour?

Regards, Simon

Phil Harvey

Hi Simon,

ExifTool assumes the local time zone unless the GeoTime you write contains a time zone.  In your case you are writing ModifyDate, which won't have a time zone.  If it is UTC, then you need to do this: '-geotime<${ModifyDate}+00:00'.  This is just like example number 6 on the Geotagging page.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Fi156

Hello Phil,

thank you!
It works now.

(I looked into the examples beforehand, but was not able to related that to my problem - sorry!)

Keep up the great work :)
Regards, Simon