ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: JeffreyEarly on June 24, 2010, 04:22:57 PM

Title: XMP date precision
Post by: JeffreyEarly on June 24, 2010, 04:22:57 PM
Phil,

We're trying to set a partial precision date to an XMP tag, such as,
./exiftool -n -XMP:DateCreated='2010:06:14 17:51' TestImage.JPG
but when I read the tag back out I get,
./exiftool -n -XMP:DateCreated TestImage.JPG
Code: [Select]
Date Created                    : 2010:06:14 17:51:00
If I just do day-precision (instead of minute-precision) everything works as expected.

If we're reading page 11 of the XMP spec part 2 (http://www.adobe.com/devnet/xmp/pdfs/XMPSpecificationPart2.pdf) correctly, then minute-precision should be allowed (although not hour-precision).

We're doing this through the API and not the app, but the results appear the same. Are we doing something wrong? Or is this a bug?

Thanks,
Jeffrey
Title: Re: XMP date precision
Post by: Phil Harvey on June 25, 2010, 07:40:19 AM
Hi Jeffrey,

You are correct about the XMP date/time formatting.  ExifTool should allow the seconds to be missing without inserting a value of 00 as is the current behaviour.  I will fix this in the next release.

- Phil