[Bug 193890] New: Update Time & Date: update "Modified" date

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

[Bug 193890] New: Update Time & Date: update "Modified" date

Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890

           Summary: Update Time & Date: update "Modified" date
           Product: digikam
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: unspecified
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:            (using KDE 4.2.3)
Installed from:    Ubuntu Packages

When using the Update Time & Date feature, only the Created date is changed.
This can make a situation where the Modified time is before the created time.
Both should be changed together, even optionally.

--
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 193890] Update Time & Date: update "Modified" date

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


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |timeadjust
            Version|unspecified                 |0.2.0
            Product|digikam                     |kipiplugins




--
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 193890] Update Time & Date: update "Modified" date

Marcel Wiesweg
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890


Marcel Wiesweg <[hidden email]> changed:

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




--- Comment #1 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-05-24 15:40:00 ---
Are your referring to the modification date as given by the file system, only
the modification date as shown by digikam, or both?
In other words, is the problem that the modification date of the file is
changed but this is not found by digikam, or is the problem that the
modification date of the file is (intentionally) not changed when adjusting the
metadata?

--
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 193890] Update Time & Date: update "Modified" date

Bugzilla from kde-3@dotancohen.com
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890





--- Comment #2 from Dotan Cohen <kde-3 dotancohen com>  2009-05-24 15:48:26 ---
I am talking about the Modification date as shown by Digikam. I have not
checked what the filesystem says yet.

--
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 193890] Update Time & Date: update "Modified" date

Bugzilla from mikmach@wp.pl
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890





--- Comment #3 from Mikolaj Machowski <mikmach wp pl>  2009-05-24 23:49:06 ---
Note: this is somewhat related to situation where indexable file doesn't have
EXIF data. In such situations modification date (system date) which is usually
real creation date may be earlier than digiKam creation date because in such
situation digiKam takes for creation date date of import to database. Related
fragments of mails from digikam-users:


Thomas (tzsnoopy):
since a few days I am using digiKam 0.10.0 and I have to say it is a
great piece of software!!
But now I am a bit confused about the dates shown in digiKam.

In the thumbnail view there are shown two dates below each image, the
creation date as well as the modification date. For all of my pictures
containing EXIF data the dates are like I would expect. But for movies
as well as images without EXIF data it's a bit confusing. There, the
modified date matches the date the movie was taken, but the creation
date seems to be not really related to the file. The sad thing for me is
that the creation date is used for the timeline and thus all my movies
appear at the wrong date.

Here an example:
PICT0003.mov
created: 12.08.2008 (I have no idea what I did with the file on this
day)
modified: 16.05.2004  (on this day the movie was taken)

The strange thing is that the date shown as "created" is not equal to
the mtime, ctime, or utime of the file (according to "ls -l", "ls -lc",
and "ls -lu").

So finally, here are my questions:
- Where does the date that is taken as the creation date by digiKam come
from?
- And, is there any possibility to replace the date stored as "created"
by the date stored as "modified"? I have several hundred images and
movies without EXIF data, so adjusting the date for each image by hand
using the menu is not a real option.
------------------------------------------------------
And his final solution:

Still, I do not know where digikam gets the creation date from if there
is no metadata in the file.
But "database" was a good hint. I could take the modifications dates
(which are in my case the real dates of taking the movies) and set them
as creation dates by directly modifying the digikam database.

For all people with a similar problem, here is the way I did it:
I opened the digikam database file (in my case: digikam4.db), which is a
sqlite database, with sqliteadmin running under wine. There I performed
the following SQL query:

UPDATE ImageInformation
SET creationDate = (SELECT Images.modificationDate FROM Images WHERE
ImageInformation.imageid = Images.id)
WHERE digitizationDate is null

The "WHERE digitizationDate is null" is used to adjust the creation date
only of those files without metadata.

For me this query worked fine. But of course someone should only try
this if he/she knows what this stuff is doing. Adapting the digikam
database directly could destroy it! So always make a backup before.
-------------------------------------------------------------------

--
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 193890] Update Time & Date: update "Modified" date

Marcel Wiesweg
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890





--- Comment #4 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-07-26 15:12:54 ---
Dotan: Modification date is the file system's modification date, nothing else.
It is always in sync with the file system info. There is an option in digikam
"Update file timestamp when metadata is saved" if the modification date shall
be changed when changing metadata (normally is should, but people think
changing metadata doesn't qualify as changes). The modification date is then
changed to the date when you do the change, not the date you adjust the
creation time to.
It may be possible to fool the filesystem info and adjust the modification date
as well. So this is either a WISH or a WONTFIX.

Mikolaj: I think this bug has been fixed recently. We now use the oldest of
ctime, mtime.

--
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 193890] Update Time & Date: update "Modified" date

Gilles Caulier-4
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890


Gilles Caulier <[hidden email]> changed:

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




--- Comment #5 from Gilles Caulier <caulier gilles gmail com>  2011-12-21 10:06:50 ---
Dotan,

This file still valid using kipi-plugins 2.4 ?

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
|

[kipiplugins] [Bug 193890] Allow to update "Modified" date from image

Gilles Caulier-4
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Update Time & Date: update  |Allow to update "Modified"
                   |"Modified" date             |date from image

--
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
|

[kipiplugins] [Bug 193890] Allow to update "Modified" date from image

Gilles Caulier-4
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
   Version Fixed In|                            |4.11.0
         Resolution|---                         |FIXED

--- Comment #6 from Gilles Caulier <[hidden email]> ---
Modified file date is already managed by this tool...

Gilles Caulier

--
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
|

[digikam] [Bug 193890] Allow to update "Modified" date from image

bugzilla_noreply
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.2.0                       |unspecified
          Component|TimeAdjust                  |BatchQueueManager
            Product|kipiplugins                 |digikam

--
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
|

[digikam] [Bug 193890] Allow to update "Modified" date from image

bugzilla_noreply
In reply to this post by Bugzilla from kde-3@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=193890

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|BatchQueueManager           |BatchQueueManager-Tool-Time
                   |                            |Adjust

--
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