Thread

Posted on Mon Apr 9 19:51:40 2007 by bugmenot
Timezone legal in Exif DateTime tag?
Hi All,
Does anyone know if the date/time format mentioned in the ExifTool FAQ , i.e. "YYYY:MM:DD hh:mm:ss[+-]hh:mm" is actually legal in an Exif tag, or only in an XMP tag? I ask because all the Exif documentation I can find tells me that date/time tags are limited to 20 characters (therefore no room for the timezone offset), but ExifTool will quite happily write more than 20 characters into, say, Exif:DateTimeOriginal, and the other tools I've tried all seem to read such files without complaint. I want to add timezone data to my images, but not in any way that will make them unreadable to any tool that's fussy about what it will accept...
Cheers,
Scott.
Direct Responses: 4791 | 4792 | Write a response
Posted on Mon Apr 9 20:49:58 2007 by exiftool in response to 4790
Re: Timezone legal in Exif DateTime tag?
You are correct, timezone is not part of the EXIF specification although exiftool will let you write it. The only way to write timezone information in a way that is 100% compatible with the EXIF specification is to use the GPSTimeStamp tag, which is specified in UTC. Therefore the timezone can be deduced as the difference between this and the other times in the image. Although this is allowed by the specification, I don't think there is any software out there that will take advantage of this to determine the time zone.

- Phil
Write a response
Posted on Mon Apr 9 20:52:04 2007 by cocker68 in response to 4790
Re: Timezone legal in Exif DateTime tag?

Hello,

I don't think this is legal use of this tag.
But I overcome this limitation by (mis)using GPSDateStamp/GPSTimeStamp, which stores UTC, while other date/time-fields usually store local time.

- Cocker :wq

Direct Responses: 4793 | Write a response
Posted on Mon Apr 9 20:56:47 2007 by exiftool in response to 4792
Re: Timezone legal in Exif DateTime tag?
Hey, there's Cocker -- the one who gave me the idea to use GPTTimeStamp.

Here is the original thread

- Phil
Direct Responses: 4799 | Write a response
Posted on Tue Apr 10 00:43:25 2007 by bugmenot in response to 4793
Re: Timezone legal in Exif DateTime tag?
Many thanks guys, that seems like exactly what I need. Guess I should have searched a bit harder before asking the question though...

Cheers,

Scott.
Write a response