iPhone Camera Files Incorrect Date Modified

| | Comments (0)

So here's a fun Apple/Windows bug I've had for quite some time.

I have a php script which looks at the Date Modified field on a file and renames the file to have the date in it.  I like to have the date in the file name of all my photos.

But I've noticed in the past year or so (perhaps longer!!!) that the script has been getting it wrong with random iPhone photos.  I had a closer look tonight, and found that indeed many of the photos copied to my computer have an incorrect Date Modified.

See the highlighted five photos?  All of them show they were modified at 7:42am on 14 January, but you can see their date taken were all on 13 January.  That means all five files got renamed incorrectly with my script.

iPhone randomly changes date modified

I thought it might have been Instagram, or sending photos by SMS, but it's affecting photos that I've never done anything with.  And one photo I saw with the incorrect Date Modified was modified when I would have been asleep!

The date of the photo on the phone seems to be correct.  And all I do is a manual file system copy from my phone to my D: drive.  I don't do anything fancy like import them with anything.

RenameMaster seems to get it right for files that have Date Taken in them, but sometimes photos don't, and screenshots certainly don't. It freaks out if it doesn't have the field and you get filenames with ? marks all through them because it can't deal.

I think the only way to get this to work is change the script so it will try and use Date Taken, but if that is not available then use Date Modified.

And just for fun, Gorillacam saves its movies in UTC or something (and a day in the future!!), because this movie was clearly taken on the 9th between other photos, yet it shows the date as the next morning!

Gorillacam time

Leave a comment

Kazza's "Boring Life Of a Geek" aka BLOG

IT geek, originally from Sydney, moved to Canberra in 2007. Married to "the sweetie", aka Stu. Prolific photographer, Lego junkie and tropical fish keeper.

Kazza the Blank One home