Bug 353600

Summary: Wrong date (1970-01-01) on rename during raw import from Nikon D750
Product: [Applications] digikam Reporter: Syiad <syiad.al-duri>
Component: Import-Gphoto2Assignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 4.13.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.14.0

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!