[Bug 199967] New: Creation date newer than last modified date

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

[Bug 199967] New: Creation date newer than last modified date

Tim Jenness
https://bugs.kde.org/show_bug.cgi?id=199967

           Summary: Creation date newer than last modified date
           Product: digikam
           Version: 1.0.0-beta2
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.0.0-beta2 (using KDE 4.2.4)
OS:                Linux
Installed from:    Gentoo Packages

Some images (and all videos) do not have an embedded creation date. In the
v0.9.x series the Created date and Last Modified date were picked up from the
last modification date on the file. This is as good a guess as you could make.

In v0.10.0 and later the Creation date adopted by Digikam is the current date
and the last modified date is read from the modification time of the file. This
leads to the ludicrous situation of all files of this type having a creation
date that is newer (sometimes significantly newer) than the modification date
and this can't be the right default state. This is a significant issue since
the photos are sorted by creation date and not by modification date (Which is
correct).

Please restore the old behaviour. I make a point of using "cp -p" when I copy
files precisely so this information won't be lost.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 199967] Creation date newer than last modified date

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=199967


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Metadata




--- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2009-07-13 23:48:25 ---
Tim,

Using libkexiv2 from KDE 4.3 (or trunk), digiKam from trunk (1.0.0-beta3) will
provide a new option in Metadata setup panel to ajust file time stamp when
images are changed.

This can help you ?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 199967] Creation date newer than last modified date

Tim Jenness
In reply to this post by Tim Jenness
https://bugs.kde.org/show_bug.cgi?id=199967





--- Comment #2 from Tim Jenness <tim jenness gmail com>  2009-07-14 00:06:23 ---
Well it can never be the right thing for Last Modified to be older than Created
and 0.9.x did the right thing and on import set Created to Last Modified.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 199967] Creation date newer than last modified date

Tim Jenness
In reply to this post by Tim Jenness
https://bugs.kde.org/show_bug.cgi?id=199967





--- Comment #3 from Tim Jenness <tim jenness gmail com>  2009-07-14 09:11:11 ---
After some more investigation I think that something is assuming that the ctime
field is the file creation time. It's not, it's the inode creation time. The
problem is that if you use something like cp -p or mv the modification and
access times are preserved but the inode creation time changes. I haven't been
able to find the bit in the code where the file is stat()ed [I'm a C programmer
not a C++ programmer] but what needs to happen is that the create date has to
be the oldest of atime, ctime and mtime. I can have a go at a patch if someone
can point me at the relevant file.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 199967] Creation date newer than last modified date

Marcel Wiesweg
In reply to this post by Tim Jenness
https://bugs.kde.org/show_bug.cgi?id=199967


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #4 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-07-14 12:21:04 ---
Is there any case where atime can be older than ctime or mtime? Shouldn't the
latter two be enough?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 199967] Creation date newer than last modified date

Marcel Wiesweg
In reply to this post by Tim Jenness
https://bugs.kde.org/show_bug.cgi?id=199967





--- Comment #5 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-07-14 12:27:31 ---
SVN commit 996418 by mwiesweg:

Use the oldest of ctime, mtime when falling back to the file system to
determine the creation date

CCBUG: 199967

 M  +16 -4     imagescanner.cpp  
 M  +1 -0      imagescanner.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=996418

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 199967] Creation date newer than last modified date

Tim Jenness
In reply to this post by Tim Jenness
https://bugs.kde.org/show_bug.cgi?id=199967


Tim Jenness <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #6 from Tim Jenness <tim jenness gmail com>  2009-07-15 09:01:54 ---
Thanks. Works great once I realised that digiKam was clever enough to spot that
it already had copies of all my test images and so was reading metadata
directly from the database rather than from the file as I copied them in with
new names!

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 199967] Creation date newer than last modified date

Gilles Caulier-4
In reply to this post by Tim Jenness
https://bugs.kde.org/show_bug.cgi?id=199967


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.0.0-beta2                 |1.0.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel