Digikam changes file date

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Digikam changes file date

fotografie
Hello,
when copying files with digikam digikam changes the date of the file!
For example when I copy files taken at 2017-01-01 to another album the
date of the file is changed to the actual date. How can I prevent
digikam to do this?
Thanks in advance for your help
Ulf
Reply | Threaded
Open this post in threaded view
|

Re: Digikam changes file date

Gilles Caulier-4
The file copy operation is delegate to Qt API which call the file system method from libc. Typically digiKAm do not touch explicitly to file date, but depending of FS used in background, i suspect that the date can be changed with low level library.

Also this depend of which operating system you use...

Gilles Caulier

2018-01-11 7:07 GMT+01:00 fotografie <[hidden email]>:
Hello,
when copying files with digikam digikam changes the date of the file!
For example when I copy files taken at 2017-01-01 to another album the
date of the file is changed to the actual date. How can I prevent
digikam to do this?
Thanks in advance for your help
Ulf

Reply | Threaded
Open this post in threaded view
|

Re: Digikam changes file date

AndriusWild
Are you talking about still images or videos?
For images, no matter what file modify date is digikam reads the creation date from the metadata.
For videos yes digikam will use file modify date as media creation date 'cause exiv2 can't read metadata from video files properly. 

I use a script to read the media creation date and write it as the file modify date in order to display video files properly in Timeline. Sometimes you need to delete an xmp sidecar for the video in order to let digikam pickup the new date after running the script.

Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Gilles Caulier <[hidden email]>
Date: 2018-01-10 11:53 PM (GMT-07:00)
To: digiKam - Home Manage your photographs as a professional with the power of open source <[hidden email]>
Subject: Re: Digikam changes file date

The file copy operation is delegate to Qt API which call the file system method from libc. Typically digiKAm do not touch explicitly to file date, but depending of FS used in background, i suspect that the date can be changed with low level library.

Also this depend of which operating system you use...

Gilles Caulier

2018-01-11 7:07 GMT+01:00 fotografie <[hidden email]>:
Hello,
when copying files with digikam digikam changes the date of the file!
For example when I copy files taken at 2017-01-01 to another album the
date of the file is changed to the actual date. How can I prevent
digikam to do this?
Thanks in advance for your help
Ulf