Bug 353600 - Wrong date (1970-01-01) on rename during raw import from Nikon D750
Summary: Wrong date (1970-01-01) on rename during raw import from Nikon D750
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 4.13.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 12:50 UTC by Syiad
Modified: 2017-08-16 05:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Syiad 2015-10-06 12:50:23 UTC
Renaming files during import from my D750 works for both, raw and jpeg files. Also autocreation of albums based on file extension works OK.
However, when I want to use the template '[date]_something_[file]' to rename the files during import, it only works as advertised for the jpegs. All the renamed raw files then start with '19700101T000000_' instead of the date and time when the picture was taken.

Reproducible: Always

Steps to Reproduce:
1. Connect camera to computer via USB
2. Select 'Import' from digikam menu
3. Set option to rename files during import, using template '[date]_something_[file]'.
(4. Set option to autocreate albums based on file extensions) - this does not make a difference for the bug
5. Start the import

Actual Results:  
Albums are created, images imported and renamed:
   - jpegs are renamed OK as per template
   - raw files are renamed to '19700101T000000_something_DSC_xxx.nef'

Expected Results:  
Albums are created, images imported and renamed:
   - jpegs are renamed OK as per template
   - raw files are renamed OK as per template

I have already submitted a raw file from the D750 to rawsamples.ch, to help with the file format. However, it has not yet been put on the web site.
Comment 1 caulier.gilles 2015-10-06 13:35:55 UTC
I'm sure that you use the Gphoto2 driver to handle Nikon device contents. I think it's not a problem with NEF format. The date is provided by Gphoto driver.

What happen if you upload RAW files in UMS mode ?

Gilles Caulier
Comment 2 Syiad 2015-10-06 13:41:39 UTC
What does UMS mode mean? Is that to insert the SD cards directly into the computer's card reader and then import the files from there?
I haven't tried that yet, because it's more convenient to connect the camera via the USB cable. But I will give it a try and report back.
Comment 3 caulier.gilles 2015-10-06 13:49:32 UTC
yes, exactly...
Comment 4 Syiad 2015-10-06 14:59:10 UTC
When importing from the SD card directly, it works as advertised.

So it appears to be, as you said, a problem with Gphoto2. Their web site lists the D750 as supported, but maybe not properly by the version (2.5.4) that I have installed with Kubuntu 15.04. Version 2.5.8 is said to be the most recent and a history file that I found states that D750 support has been introduced with version 2.5.7.

I'll see if I can install version 2.5.8 or just wait for Kubuntu 15.10 to come out in about two weeks time.
Comment 5 Maik Qualmann 2015-10-06 16:23:56 UTC
The fallback to the file date by RAW and Ghoto2 driver is fixed in digiKam-4.14.0.

Maik
Comment 6 caulier.gilles 2015-10-06 18:16:31 UTC
Following last comment from Maik, I close this file. 4.14.0 will be released next week end. Feel free to re-open if necessary after a test with this version.

Gilles Caulier
Comment 7 Syiad 2015-10-18 15:13:30 UTC
I confirm that the issue is fixed in 4.14.
Thanks, well done!