Bug 110698 - adjust time and date does not work
Summary: adjust time and date does not work
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-TimeAdjust (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-13 13:25 UTC by Anders Lund
Modified: 2018-09-22 08:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments
Patch to extract digikam datetime from kipiplugins (2.86 KB, patch)
2005-08-13 14:22 UTC, Owen Hirst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Lund 2005-08-13 13:25:31 UTC
Version:           0.8.0-cvs (using KDE 3.4.89 (>= 20050508), compiled sources)
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.11-gentoo-r7

The 'adjust time and date dialog' simply does not work in a logig way. It appears to be 100% broken.

Adding 1 year will add 1 year to the file's mdate and store the result in digikams own data. Adding 1 year again has no effect. It appears that digikam does not offer any way to manipulate the exif dates.
Comment 1 Anders Lund 2005-08-13 13:30:54 UTC
This appears to be a plugin. Btw, using it leaves the image with at least 3 different dates - the file mdate, the digikam date and the EXIF date. I'd like to suggest that the plugin explains what it will do, that client applications uses it in that way, and that it allows to store adjust both the file date and the EXIF date(s) with a clear GUI.
Comment 2 Gerhard Kulzer 2005-08-13 13:35:40 UTC
>
> ------- Additional Comments From anders alweb dk  2005-08-13 13:30 -------
> This appears to be a plugin. Btw, using it leaves the image with at least 3
> different dates - the file mdate, the digikam date and the EXIF date. I'd
> like to suggest that the plugin explains what it will do, that client
> applications uses it in that way, and that it allows to store adjust both
> the file date and the EXIF date(s) with a clear GUI.


This is a kipi-plugin that has to be discussed with all other KDE graphical 
applications that use these plugins. I don't know the appropriate ML, though.

Gerhard
Comment 3 Anders Lund 2005-08-13 13:47:20 UTC
On Saturday 13 August 2005 13:35, Gerhard Kulzer wrote:
> This is a kipi-plugin that has to be discussed with all other KDE graphical
> applications that use these plugins. I don't know the appropriate ML,
> though.


I know little about the internals of kipi plugins, but is it possible that 
digikam uses it wrong? i would expect to be able to adjust more than once, 
but given the current way it reads/stores the data, that is not possible. And 
having all those different dates is really weird. I repeat, the file mdate, 
or the EXIF dates, or all should be targeted, depending on user choice. And 
reading and writing in the same place is the only thing that can justify the 
'adjust' in the name ;)
Comment 4 Gerhard Kulzer 2005-08-13 13:57:33 UTC
> On Saturday 13 August 2005 13:35, Gerhard Kulzer wrote:
> > This is a kipi-plugin that has to be discussed with all other KDE
> > graphical applications that use these plugins. I don't know the
> > appropriate ML, though.
>
> I know little about the internals of kipi plugins, but is it possible that
> digikam uses it wrong? i would expect to be able to adjust more than once,
> but given the current way it reads/stores the data, that is not possible.
> And having all those different dates is really weird. I repeat, the file
> mdate, or the EXIF dates, or all should be targeted, depending on user
> choice. And reading and writing in the same place is the only thing that
> can justify the 'adjust' in the name ;)


In fact you can change the date several time. When the dialog comes up the 
second time you want to change, the previous changes are already preset. Just 
change the date even more and it will be retained in mdate.

Gerhard
Comment 5 Owen Hirst 2005-08-13 14:22:32 UTC
Created attachment 12205 [details]
Patch to extract digikam datetime from kipiplugins

digikam doesn't override the base libkipi function for datetime of an image
(which reverts to using the file modification time). This patch adds the
function.
Comment 6 Anders Lund 2005-08-13 14:23:16 UTC
On Saturday 13 August 2005 13:57, Gerhard Kulzer wrote:
> In fact you can change the date several time. When the dialog comes up the
> second time you want to change, the previous changes are already preset.
> Just change the date even more and it will be retained in mdate.


That is kind of nonsense. I can't add some days, and then subtract some hours 
for example. Because there is no adjustment, as long as the data isn't 
written back to where it was read. So I need a time calculator.

On a side note, the plugin should provide a list of the modifications it will 
do to each file, like rename utilities does. The current plugin requires 
quite a bit of imagination from the user!

I just installed jhead, which allows me to modify EXIF data, and we all have 
means of modifying inode data, so i can use the plugin to finally adjust 
digikam's internal date to the exif one.

It would be easier if digikam would provide means for doing it all though ;)
Comment 7 Owen Hirst 2005-08-13 14:28:00 UTC
Anders, my attached patch fixes the problem of the timeadjust plugin not being reusable again. 

Now, as to the question of EXIF date: the plugin doesn't say that it will modify EXIF date... you assumed that. From what I have seen digikam presents only one datetime to the user (yeah, yeah... i know that you can peek at the EXIF date in the properties dialog) and the timeadjust plugin adjusts that.
Comment 8 Owen Hirst 2005-08-13 14:36:08 UTC
Oops, my fix for "slideshow plugin being disabled at startup" leaked into the patch I submitted. Sorry about that
Comment 9 Anders Lund 2005-08-13 14:47:50 UTC
On Saturday 13 August 2005 14:28, Owen Hirst wrote:
> Now, as to the question of EXIF date: the plugin doesn't say that it will
> modify EXIF date... you assumed that. From what I have seen digikam
> presents only one datetime to the user (yeah, yeah... i know that you can
> peek at the EXIF date in the properties dialog) and the timeadjust plugin
> adjusts that.


Your patch definately makes this work much more like expected, so thanks a 
lot. I suggest it be comitted to close this bug, and also fix the slidewhow 
problem which is cool as well :) 

Manipulating EXIF data is more like a wish - it appears that I have a lot of 
images with bad EXIF dates. 
Comment 10 Tom Albers 2005-08-15 22:17:23 UTC
SVN commit 449513 by toma:

Owen Hirst <n8rider@sbcglobal.net>  has provided a patch for KIPI Rename Images (part of the BatchProcesses Plugin). 

kipi part:
* Complete rewrite
* Use rename instead of copy
* Allow formatting of date string

digikam part:
* fixes the time and date adjustment not working 
* Update database entry when a file is renamed by a KIPI Plugin
* make slideshow available right after digikams start

This fixes the following bugs:
BUGS:110391,110659,110698,110575,99895,104032,105727,110508,104511

great work!



 M  +16 -0     graphics/digikam/digikam/albumdb.cpp  
 M  +8 -0      graphics/digikam/digikam/albumdb.h  
 M  +2 -0      graphics/digikam/digikam/digikamapp.cpp  
 M  +24 -10    graphics/digikam/digikam/kipiinterface.cpp  
 M  +1 -0      graphics/digikam/digikam/kipiinterface.h  
 _M            libs/kipi-plugins/batchprocessimages (directory)  
 M  +3 -2      libs/kipi-plugins/batchprocessimages/Makefile.am  
 M  +22 -1     libs/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp  
 M  +7 -0      libs/kipi-plugins/batchprocessimages/batchprocessimagesitem.h  
 M  +3 -3      libs/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp  
 A             libs/kipi-plugins/batchprocessimages/renameimagesbase.ui  
 M  +45 -663   libs/kipi-plugins/batchprocessimages/renameimagesdialog.cpp  
 M  +44 -79    libs/kipi-plugins/batchprocessimages/renameimagesdialog.h  
 A             libs/kipi-plugins/batchprocessimages/renameimageswidget.cpp   [License: GPL]
 A             libs/kipi-plugins/batchprocessimages/renameimageswidget.h   [License: GPL]
Comment 11 Anders Lund 2005-08-15 22:37:27 UTC
On Monday 15 August 2005 22:17, Tom Albers wrote:
> great work!


You people rock! :-)