Skip to main content
Known Participant
May 11, 2011

P: "Data/Time digital" not shown correctly in Lr 3.4

  • May 11, 2011
  • 43 replies
  • 1483 views

I recently noted that in Lr 3.4 the metadata field "Date/time digital" does not show the correct date any more. It always shows the date/time of the other two date/time fields.
I've tested my catalog again with Lr 3.3 and there it shows correctly. This seems to be bug introduced in Lr 3.4.

This topic has been closed for replies.

43 replies

johnrellis
Legend
September 9, 2011
Gary,

In step 2 of your original post, you observed that LR 3.3 would set XMP:CreateDate to Date Time Original (as seen in the Metadata panel), rather than Date Time Digitized, resulting in:

[XMP] Date/Time Digitized : 2011:06:27 20:43:15-05:00
[XMP] Create Date : 1985:04:17 12:00:00-05:00

getting written back to the file. These two fields are supposed to have the same value, but when they don't, LR 3.4 and 3.5RC give priority to XMP:CreateDate. So if you import those files back into LR, they'll get the wrong Date Time Digitized.

You might consider using Exiftool to find all such files and deleting XMP:CreateDate.
johnrellis
Legend
September 9, 2011
I've tested LR 3.4 and 3.5RC handling of dates, and I've found that LR 3.4 and LR 3.5RC conform with the Metadata Working Group guidance, with a couple of exceptions:

- The Edit Capture Time command overwrites Date Time Digitized in the Metadata panel and in the file metadata with Date Time Original, and it leaves an incorrect value in XMP:DateCreated.

- It writes Date Time Original into EXIF:DateTime and XMP:ModifyDate rather than the current local time.

In particular, here's how LR 3.5RC reads and writes the Date Time Original and Date Time Digitized values shown in the right-hand-side Metadata panel:

- Date Time Original is read from: XMP:DateTimeOriginal, EXIF:DateTimeOriginal. If both fields are present but have different values, priority is given in that order. IPTC:DateCreated/TimeCreated is not used for the Metadata panel's Date Time Original.

- Date Time Original is written to: EXIF:DateTimeOriginal, EXIF:DateTime (called ModifyDate by Exiftool), XMP:DateCreated, XMP:ModifyDate (non-conforming with the standards), IPTC:DateCreated/TimeCreated.

- Date Time Digitized is read from: XMP:CreateDate, XMP:DateTimeDigitized, EXIF:DateTimeDigitized (called CreateDate by Exiftool). If two or more of the fields are present but have different values, priority is given in that order.

- Date Time Digitized is written to: EXIF:DateTimeDigitized (called CreateDate by Exiftool), XMP:CreateDate. On export, it is also written to IPTC:DigitalCreationDate/Time.

I believe LR 3.4 behaves the same, but since I tested it a while ago I can't say 100%.
Participating Frequently
September 9, 2011
Actually, we don't want to use -alldates for scanned images. We want to set CreateDate (aka DateTimeDigitized) to a value that is different than DateTimeOriginal. The -alldates option might be handy to reset everything for an image from a digital camera, however.
alanterra
Inspiring
September 9, 2011
I am still a novice at all of this. What I do with exiftool is to set the values using -flag=value (which sometimes takes some work to figure out), and then read the values using the -X option, which shows how exiftool maps the value. I am sure that there is an easier way to do this. I have never found a complete list of all the flags that exiftool recognizes (though I have not looked at the code).

FWIW, I note that the "-allDates" flag shows only CreateDate and DateTimeOriginal, and these seem to map directly to the values shown in Lightroom. I suggest that Gary use these for his initial scans.

Mark's comment that "this is horribly confusing" is one of the great understatements of the year. I have a crib sheet mapping exiftool name, my name, internal name, Lightroom Name, and Camera Raw name.

Don't get me started on the difference between "-subject", "-keywords" and "-keyword". That took me a long time too (not that I have more than an operational understanding).

Alan
Participating Frequently
September 9, 2011
Thanks Mark, I had forgotten about the extra listing options with exiftool, namely -G:0:1. Using that pretty much confirms my suspicions stated above. I'll work on this a bit more this weekend, and will probably post further observations in the most current thread on this subject (as this one was already marked 'solved'). I believe some of my problems also stem from LR3.3. In any case, it appears Alan is in good shape with his collection.

http://feedback.photoshop.com/photosh...
Known Participant
September 9, 2011
The trick with exiftool is to know that its tag names do not necessarily match those of the relevant specifications, and to be explicit when telling it where to put things.

exiftool uses "CreateDate" to represent what the EXIF specification calls DateTimeDigitized. This is horribly confusing, as the XMP specification has something called CreateDate in the xmp schema.

By default, exiftool treats CreateDate as EXIF DateTimeDigitized, so you can use "exiftool -CreateDate=YYYY:MM:DD... -DateTimeOriginal=YYYY:MM:DD... scan.tiff" and it'll write into the correct fields. Use exiftool -a -G -s to confirm that you've written it to the write places.
Participating Frequently
September 9, 2011
Alan, I have been using Exiftool to set the tag names DateTimeOriginal and DateTimeDigitized in my scans, prior to importing them into LR. I guess the question is, where has Exiftool been placing that data.

My understanding is that DateTimeDigitized is from the original exif spec (last updated in 2002), and that Adobe's XMP spec was designed to incorporate that exif data. So... my assumption (perhaps wrong) has been that Exiftool has been placing the DateTimeDigitized data into the appropriate XMP block for the old exif data. Hence, the "XMP:DateTimeDigitized" notation when listed by Exiftool.

On the other hand, Exiftool appears to associate the nametag "CreateDate" with the original exif block, and places any "CreateDate" data you define into the exif:DateTimeDigitized. This is noted on Phil Harvey's Exif Tag Name page.

So, that brings us to LR3.5RC. 3.5RC appears to be properly mapping the exif:DateTimeDigitized (called CreateDate by exiftool) to the xmp:CreateDate, and properly associating that with the digitized date of the scan. All is good there, and your collecion would appear to be ok. For me, however, 3.5RC does not appear to be picking the DateTimeDigitized from whatever block that Exiftool placed it. In doing so, 3.5RC then simply maps the CreateDate to the DateTimeOriginal (which is normally correct for a digital camera). The worse part, however, is that if I save the metadata to the file with 3.5RC, then the DateTimeDigitized information entered by Exiftool is completely wiped away from the original scan file.

Mark - I had composed the above prior to your latest reply, and appear to have reached the same conclusion as you have. In fact, I already used exiftool the other day to map the DateTimeDigitized tag to CreateDate in my scan collection. So I'm up and running with 3.5RC, but have disabled autowrite metadata and will be very cautious to not write anything out to my files until we understand more about why the xmp:DateTimeDigitized is being lost completely. After all, it certainly made sense to use that name tag in Exiftool, didn't it? I suspect others may be in the same boat and would hate to see them loose their data before they have a chance to map it to CreateDate. Finally, if exiftool is placing the DateTimeDigitized data in a proper place in the xmp block, I would hope that Adobe can look at picking that up and mapping it to the proper place as defined by the MWG.
Known Participant
September 9, 2011
I think you're right to be confused. What I suspect is happening is that Gary is setting some fields, and leaving others blank, that make his files look different than LR is prepared to handle. It does its best to map the input to MWG guidance, but because the input is incomplete it's not working as expected.

Gary, I would suggest you read over sections 4.2 and 5.3 of the Metadata Working Group Guidance (http://www.metadataworkinggroup.org/i...) and be sure to set your files appropriately.

Specifically, by my read, you should set EXIF DateTimeDigitized to the time of the scan and EXIF DateTimeOriginal to the time that the photo was originally taken. Leave the corresponding IPTC and XMP fields empty, and let LR populate those upon import.
alanterra
Inspiring
September 9, 2011
Well, I still don't understand all the details on merging and making consistent the various metadata fields, so forgive me if I am still confused.... But reading the post by Gary, I think he may be setting EXIF DateTimeDigitized in his scans using exiftool, and then importing the files into Lightroom, and seeing the problems he describes.

I set XMP CreateDate in my files (using exiftool) before importing into Lightroom and I do not see (have not yet seen) the problems that Gary describes. Hence my question. I raise this because (a) my workflow might work for him, and (b) if there are bugs in LR that I don't know about, I want to understand them. Maintaining metadata correctly is very important to me.

AFAICT, there is no XMP DateTimeDigitized field, which was the source of some of my confusion.
Known Participant
September 9, 2011
Alan, I would assume that "[XMP] Date/Time Digitized" is XMP xmp:ModifyDate. It maps to IPTC DigitalCreationDate and IPTC DigitalCreationTime as well as EXIF DateTimeDigitized.