Geotagging: timezone not seen ?

Started by wschulte, January 19, 2019, 04:37:12 AM

Previous topic - Next topic

wschulte

Geotagging JPG images with a Garmin GPX and it  looks like I can't get exiftool to take the timezone in account, it seems to keep looking at my local timezone.
Images were taken in +0200 and I live in +0100. Times in the images are corrected (camera clock was running ahead) with exiftool and look great. But when I run a geotagging the placed GPS marker in the image is one hour ahead of the date in the image:
exiftool -alldates P1070556.JPG
Date/Time Original              : 2018:11:15 06:52:25
Create Date                     : 2018:11:15 06:52:25
Modify Date                     : 2018:11:15 06:52:25

exiftool -v2 '-geotime<${datetimeoriginal}+0200' -geotag 15-nov.gpx P1070556.JPG
Loaded 652 points from XML-format GPS track log file '15-nov.gpx'
  GPS track start: 2018:11:15 03:43:26.000 UTC
  GPS track end:   2018:11:15 06:43:02.000 UTC
Writing File:Geotag
======== P1070556.JPG
Setting new values from P1070556.JPG
  Geotime value:   2018:11:15 05:52:25.000 UTC (local timezone is +01:00)
Writing MIE-GPS:GPSLatitude
Writing XMP-exif:GPSLatitude if tag exists
Writing GPS:GPSLatitude
Writing MIE-GPS:GPSLongitude
Writing XMP-exif:GPSLongitude if tag exists
Writing GPS:GPSLongitude
Writing MIE-GPS:GPSAltitude
Writing XMP-exif:GPSAltitude if tag exists
Writing GPS:GPSAltitude
Writing XMP-exif:GPSAltitudeRef if tag exists
Writing GPS:GPSAltitudeRef
Writing XMP-exif:GPSImgDirection if tag exists
Writing GPS:GPSImgDirection
Writing XMP-exif:GPSImgDirectionRef if tag exists
Writing GPS:GPSImgDirectionRef
Writing GPS:GPSLatitudeRef
Writing GPS:GPSLongitudeRef
Writing GPS:GPSDateStamp
Writing GPS:GPSTimeStamp
Writing XMP-exif:GPSDateTime if tag exists
Rewriting P1070556.JPG...
  Editing tags in: APP0 APP1 File GPS IFD0 JFIF MIE-GPS XMP
  Creating tags in: APP1 File GPS IFD0 MIE-GPS
JPEG APP1 (36192 bytes):
  Rewriting IFD0
  Rewriting ExifIFD
  Rewriting MakerNotePanasonic
  Rewriting FaceDetInfo
  Rewriting FaceRecInfo
  Rewriting InteropIFD
  Creating GPS
    + GPS:GPSVersionID = '2 3 0 0' (mandatory)
    + GPS:GPSLatitudeRef = 'S'
    + GPS:GPSLatitude = '25 3 34.1855646191601'
    + GPS:GPSLongitudeRef = 'E'
    + GPS:GPSLongitude = '22 6 19.7934722358761'
    + GPS:GPSAltitudeRef = '0'
    + GPS:GPSAltitude = '1001.50506142506'
    + GPS:GPSTimeStamp = '05 52 25'
    + GPS:GPSImgDirectionRef = 'T'
    + GPS:GPSImgDirection = '186.35'
    + GPS:GPSDateStamp = '2018:11:15'
  Rewriting IFD1
JPEG APP2 (94 bytes):
JPEG DQT (130 bytes):
JPEG SOF0:
JPEG DHT (416 bytes):
JPEG DRI (2 bytes):
JPEG SOS
    1 image files updated


Camera times are in local (+0200) time where the camera is. So this image has a DateTimeOriginal of 2018:11:15 06:52:25, which is a GPS time (which is in UTC) of 2018:11:15 04:52:25. But the GPS position used is from 2018:11:15 05:52:25. The used GPS position correspond with the local timezone where the PC is located (+0100), not where the camera was located (+0200).

What am I doing wrong that it uses the timezone of my PC to correlate the image time to the GPS time ? I have tried several changes, but I am at a loss now  :o . If I look up the assigned PS position I can also clearly see it is not correct.

Can someone please  help ?

Btw:
exiftool -ver
10.80
uname -a
Linux Mint19Mate 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Phil Harvey

You need a colon in your time zone.

- 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 ($).

wschulte

Phil, thats the one ! jee, it never even crossed my mind to put a colon in the timezone, but now it works

Thanks a lot for that.

And I must express my gratitude for the tool. I know how painstaking work this can be.