LIGHTROOM: Date gets wrong for pictures with date 01-01-2000 00:00:00

  • 1
  • Problem
  • Updated 4 years ago
  • (Edited)
Dear Sirs, with LR 4.4 (at least with the German Version) there is a Bug when JPEG-Pictures are to be imported:
For pictures with date = 01.01.2000 00:00:00 ... 01.01.2000 00:59:59
the date after import is shown as the present date at import time
e.g. 05-10-2014 and when FileName change for import is active with user defined filename (YEAR(YY) Month(MM)...)
the name is generated as 9912_myname instead of 0001_myname.
When I change minutes/seconds, the bug remains. as soon as I change the hour:
date = 01.01.2000 01:00:00 everything works as expected
All imported pictures with this critical date are still recognized as new when a new Import-session is started.
Could you please fix this bug?
Joern
kunze@adp-dresden.de
Photo of t kunze

t kunze

  • 5 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Rikk Flohr

Rikk Flohr, Champion

  • 1373 Posts
  • 334 Reply Likes
Greetings,

4.4 is the last version of the Lightroom 4 cycle. It will not be receiving any more updates.

Have you tried version 5 to see if the the problem is there as well? It is available for a 30-day trial.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
Which operating system? I'm not able to reproduce that on LR 5 / Windows 7 64. I'm wondering about the scope of this problem. Can you upload a pic to Dropbox and share the link here?
Photo of t kunze

t kunze

  • 5 Posts
  • 0 Reply Likes
Thanks for the hints - meanwhile I did some "digging into the problem", and its a little bit more complicated than it seems: German systems have the "daylight saving time" - and this probably causes the trouble: When pictures are taken in "Winter time" and copied some month later in "summer time", Windows shifts the time "under some circumstances somehow" automatically 1hour on NTFS-FileSystems. If the pictures are taken in the first hour of the winter-day, even the year will change (see example below) - which probably causes LR to recognize pictures which were already imported always as new pictures.
To handle this problem, adobe should investigate proper usage of the used DateTime function for determining "new pictures". It seems for importing pictures the UTC-Time is used, but for determining new pictures the LocalTime is used - here is an example:
C# Calls for getting the DateTime from NTFS-File:
string sPicture = @"e:\DSCN1310.JPG";
DateTime lastWriteTime = System.IO.File.GetLastWriteTime (sPicture );
DateTime lastWriteTimeUTC = System.IO.File.GetLastWriteTimeUtc(sPicture );
...
Output:
System.IO.File.GetLastWriteTime: 2000-01-01 12:00:00
System.IO.File.GetLastWriteTimeUtc: 1999-12-31 11:00:00

Of course - other programs have to struggle with this problem as well (e.g. TotalCommander has a flag "ignore 1 hour time difference" for file synchronization)

About my system_ Win7 64bit, NTFS (to make DateTime problems even more complicated, there might be even more strange effects when different drives with FAT32 / NTFS file systems are used in a mixed manner since FAT32 doesnt support UTCTime)

By the way - I would test the DateTime problem with LR5 - but:
Will there be any side effects to my existing LR4 installation (has anyone LR4 and LR5 runnning simoultaniously on the same system)?

Thanks again!
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
Yes, many of us run 4 and 5 side-by-side. When 5 converts your 4 catalog, it will create a new copy rather than writing over the 4 catalog.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
There are a number of issues to tease out here. Posting a sample pic and a recipe for reproducing the problem, as well as answering these questions below, would it make it much easier for us to help out.

1. Which dates are you looking at in LR? There are many different dates. Are you looking at Capture Date/Time in the Metadata panel with the Default preset? Or Date Time Original in the Metadata > EXIF preset? Or somewhere else?

2. In general, LR only uses the operating system's file creation and modification times when there is no capture date stored in the pic's metadata, and in that case, LR is inconsistent which one it uses in which places. A sample pic will make it clear if there's a valid capture date in the metadata.

3. Are your pics imported via a card reader or a USB cable? LR has long-standing bugs with the date/time inserted into folder and filenames when importing via a USB cable:

http://feedback.photoshop.com/photosh...
Photo of t kunze

t kunze

  • 5 Posts
  • 0 Reply Likes
About first question: I just look at the date which is used for user-defined-renaming when files are imported. I dont realy care if there is a time shift of one hour or not.
But the most bothering thing here is - that already imported pictures are still recognized as new ones by LR. I dont know which dates LR takes into account when it comes to determine which picture is new and which picture has alrteady been imported. I did not make any special settings.
Apart from that, it seems to be the same problem as described with the USB-cable bug. Unfortunatly, it seems to occure even when the pictures are already on the hard disk under some circumstances. LR5 shows the same problem! Actually unbelievable - I wonder whats the job of adobes quality manager - probably to count the cash people have payed for next LR versions hoping that some long standing bugs have been fixed...

By the way - Is there a way to mark pictures in the Import-dialog as already imported ?

That would give at least a work-around for the already imported pictures. For pictures which are not imported yet, I change the File date plus 1 hours with the TotalCommander for files taken close to midnight (no date change in the metadata - just the Filedate) and then it works.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
"Is there a way to mark pictures in the Import-dialog as already imported ?"

You can uncheck photos in the import dialog that you don't wish to import. Or perhaps you're asking something else?
Photo of t kunze

t kunze

  • 5 Posts
  • 0 Reply Likes
Yes, since I have a lot of imported pictures which are already imported but still recognized as "new" by the LR-Import, I want to mark these pictures in a way, that LR doesnt recognizeses them as new anymore and doesnt show them at all for import new pictures.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
To test my understanding: In the Import window, LR is showing photos with a check mark (to be imported) even though those exact files have been previously imported into the catalog?

If that understanding is correct, double-check that you have Don't Import Suspected Duplicates checked.
Photo of t kunze

t kunze

  • 5 Posts
  • 0 Reply Likes
Unfortunatly 'Don't Import Suspected Duplicates' is checked, but already imported pictures with a critical date as described above around midnight are always shown as new ones. For all other pictures with another date it works though. I suppose it is the same UTC / local time problem like described with the USB-imported pictures - but unfortunatly it seems it is not restricted to USB-imported pictures. And adobe obviously doesnt care about that...
Photo of John R. Ellis

John R. Ellis, Champion

  • 3586 Posts
  • 926 Reply Likes
Unfortunately, I don't know of any easy workaround for your problem, other than to avoid using the USB cable (to reduce the occurrences). I haven't seen any other suggestions on these forums, though perhaps I've missed some.