Problem with file rename on import - date in filename is wrong

  • 1
  • Problem
  • Updated 1 month ago
Lightroom Classic CC 7.4, Windows 10. Importing from an iPhone 6s Plus.
(I should note that I just performed the upgrade from an older version 6.x of Lightroom)

I'm importing over a thousand photos/videos, and attempting to rename them during the import so that the filename is in the schema "20180720-IMG_001.jpg".


What happens is that some of the media is renamed just fine. But other photos/videos are put in the wrong date folder, and also named with the wrong date. The creation time of the file is correct, but does NOT match the file name.

Here is an example of files being put in the wrong folder. They all got put in 2018-01-18 even though they are clearly renamed correctly based on their creation date.


And here is an example of the files being put in the right folder, but named incorrectly.


This seems like such a basic thing, and has always worked in the past. 

Any ideas as to what I might be doing wrong, or is this a bug?
Photo of Eric Musgrave

Eric Musgrave

  • 1 Post
  • 0 Reply Likes
  • confused

Posted 2 months ago

  • 1
Photo of Smit Keniya

Smit Keniya, Employee

  • 185 Posts
  • 88 Reply Likes
Hi Eric,

There is an issue with video files and bug has been logged for that.

I was not able to reproduce the issue with the images. Could you share couple of images where you are facing the issue to keniya@adobe.com

Thanks,
Smit
Photo of John R. Ellis

John R. Ellis, Champion

  • 3691 Posts
  • 963 Reply Likes
Are you importing via a USB cable?  There is a long-standing bug with date-based folder and file names and USB cables: 
https://feedback.photoshop.com/photoshop_family/topics/lightroom_import_wrong_folder_names_organizin...
Photo of Greg Veres

Greg Veres

  • 4 Posts
  • 0 Reply Likes
I was about to file the same bug with importing Live Photos. The static image gets imported just fine - it gets the right date and time assigned to the file name and the creation date. 

However, the movie portion of the live photo gets the wrong creation date (I just posted a bug for that - the creation date is off by 1 hour later than the date of the file) and the file name date is written out as UTC time rather than the timezone of the photo.

I think this is likely what is happening to the original poster - the date being used is UTC instead of their configured timezone. So the file ends up in the next day (or previous day) because UTC pushes some of those photos into the next day.

Here is an example:
I have a live photo taken on July 21, 2018, 2:23PM EDT. 
I am using a rename pattern that puts the date and time in the file name.

When I imported the photo, I got two unrelated files (already a problem because LR doesn't fully support Live Photo import and handling):
static image: 
filename: 2018-07-21__14-23-56__IMG_4589__iPhone 6s Plus.JPG
creation date: July 21, 2018 at 2:23PM

Movie file:
filename: 2018-07-21__19-23-56__IMG_4589__.MOV
creation date: July 21, 2018 at 3:23PM

Note that the file name for the movie is using UTC (5 hours ahead) - which is wrong. It should write it in the same timezone as the static image - or at least the TZ of the computer I am importing on rather than the arbitrary UTC.

Ah, now I see what is happening with the off by 1 hour on the movie's creation date. We are currently in day light savings time. I suspect that the developers didn't take that into consideration properly when converting dates. date handling is difficult. 



Photo of Robert Camner

Robert Camner

  • 5 Posts
  • 0 Reply Likes
I have run into exactly the same problem with video files...LR is picking up the wrong date when renaming video files.  However, I believe I have found a workaround.  See https://www.lightroomqueen.com/community/threads/wrong-date-picked-up-renaming-video-files-with-work...