Bug 370553 - Adjust date - not possible to update "digikam timestamp"
Summary: Adjust date - not possible to update "digikam timestamp"
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-TimeAdjust (show other bugs)
Version: 5.3.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-12 13:41 UTC by Nicofo
Modified: 2018-10-04 18:37 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments
adjust date/time new UI (120.79 KB, image/png)
2016-10-12 13:42 UTC, Nicofo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2016-10-12 13:41:27 UTC
Since version of DK 5.0, it is not possible anymore to update "digikam timestamp" only.

This tool has been transferred to BQM. The option "update digikam timestamp", present in DK 4.x, has been removed (see in red in attached picture).
Therefore it is not possible to update digikam timestamp only.

Note: it is however still possible to use digikam timstamp as a time reference ("timestamp used")

Note: other minor problems with new tool in BQM:
 - option "update digikam timestamp" simply removed from UI -> there is a hole instead. Other options ("EXIF:original", ...) must be shifted upwards.
- TAB key not working very well (should switch between the different options in the same order than the UI (from "EXIF:original" to "File last Modified")

Reproducible: Always
Comment 1 Nicofo 2016-10-12 13:42:33 UTC
Created attachment 101543 [details]
adjust date/time new UI

Digikam Timestamp option removed below
Comment 2 caulier.gilles 2016-10-12 14:02:14 UTC
I recommend to test with 5.2.0

Gilles Caulier
Comment 3 Kristian 2016-10-23 21:10:38 UTC
Still missing with digikam 5.2.
Comment 4 Maik Qualmann 2016-10-24 17:06:42 UTC
The digiKam timestamp is updated automatically. This option made sense when the time adjust tool was an external kipi-plugin. When reading the metadata again, the digiKam timestamp would be reset to the EXIF / XMP metadata anyway.

Maik
Comment 5 Nicofo 2016-10-24 18:39:24 UTC
(In reply to Maik Qualmann from comment #4)
> The digiKam timestamp is updated automatically. This option made sense when
> the time adjust tool was an external kipi-plugin. When reading the metadata
> again, the digiKam timestamp would be reset to the EXIF / XMP metadata
> anyway.

Some thoughts about this:

QUESTION: digiKam timestamp is updated automatically: to which value: EXIF date ? If so, to be fully coherent, this option should also be removed from the UI in the "Timestamp Used" fields (and not only in the "Timestamp Updated fields")

OK, good point that digiKam timestamp should now updated automatically.
BUT this is not always the case: if you modify externally the date of the picture (exif or file's date), the timestamp is not updated, and it is not possible to update it since the option is not present anymore.

MOREOVER: the minor problems of Comment #1 are still valid
Comment 6 Maik Qualmann 2016-10-26 16:27:19 UTC
(In reply to Nicofo from comment #5)
> QUESTION: digiKam timestamp is updated automatically: to which value: EXIF
> date ? 

Direction is first Metadata -> File creation date.

> OK, good point that digiKam timestamp should now updated automatically.
> BUT this is not always the case: if you modify externally the date of the
> picture (exif or file's date), the timestamp is not updated, and it is not
> possible to update it since the option is not present anymore.

Use read Metadata from File or for a automatically update enable the option "Rescan file when files are modified" for externally modified files.

Maik
Comment 7 caulier.gilles 2016-11-28 11:14:48 UTC
Following the last coment, we can considerate this file as fixed.

Gilles Caulier
Comment 8 Nicofo 2016-11-29 22:32:10 UTC
OK, Thanks for the explanations, I agree with you.

But therefore, as DK timestamp is automatically updated to EXIF, there is no need to keep the possibility to use it as a reference to adjust the date. This option should be removed from the "Timestamp used" fields (top of screenshot in comment #2). And so totally disappear from UI ? (it's an internal variable, not useful for user I think ?)

Note also there are minor problems in the UI: see comment #1
Comment 9 Maik Qualmann 2016-11-30 19:49:36 UTC
The DK timestamp may make sense for images that have no metadata.

Maik
Comment 10 Kristian 2017-04-05 19:34:39 UTC
I still have regular problems with digikam's internal timestamp. I adjusted the time of a movie file with the TimeAdjustTool and everything seems to be fine (file modified date, etc.) apart from digikam's internal timestamp. Even after updating every single timestamp exiftool is showing, digikam's timestamp refrains from being updated and I have no idea how to update it. 

$ exiftool -time:all -G1 -a *.MOV
======== 20170402T174944-NikonD7200_matchDateTime.MOV
[System]        File Modification Date/Time     : 2017:04:02 18:48:41+02:00
[System]        File Access Date/Time           : 2017:04:05 21:30:12+02:00
[System]        File Inode Change Date/Time     : 2017:04:05 21:30:12+02:00
[QuickTime]     Create Date                     : 2017:04:02 18:48:41
[QuickTime]     Modify Date                     : 2017:04:02 18:48:41
[Track1]        Track Create Date               : 2017:04:02 18:48:41
[Track1]        Track Modify Date               : 2017:04:02 18:48:41
[Track1]        Media Create Date               : 2017:04:02 18:48:41
[Track1]        Media Modify Date               : 2017:04:02 18:48:41
[Track2]        Track Create Date               : 2017:04:02 18:48:41
[Track2]        Track Modify Date               : 2017:04:02 18:48:41
[Track2]        Media Create Date               : 2017:04:02 18:48:41
[Track2]        Media Modify Date               : 2017:04:02 18:48:41
[Nikon]         Create Date                     : 2017:04:02 18:48:41
[Nikon]         Date/Time Original              : 2017:04:02 18:48:41
[Nikon]         Time Zone                       : +01:00
[Nikon]         Daylight Savings                : No
[Nikon]         Date Display Format             : D/M/Y
[XMP-exif]      Date/Time Original              : 2017:04:02 18:48:41
[XMP-xmp]       Create Date                     : 2017:04:02 18:48:41

digikam still displays the old date before adjusting the time be approx. an hour...

Therefore, the option to update it manually would be nice.
Comment 11 Trent Piepho 2018-01-29 02:42:41 UTC
I have the same issue as in comment 10 with image files, using Digikam 5.5.0.  Steps:
1. Load images with digikam, it uses EXIF timestamps.
2. Edit images outside of digikam and modify metadata timestamps.
3. Restart digikam.

All metadata has been changed, but digikam still uses the original timestamp.  If I rename all files, then it uses the new metadata.  But change the names back, and it uses the old ones again.
Comment 12 caulier.gilles 2018-09-22 07:38:21 UTC
It's reproducible with 6.0.0, using stand alone Time Adjust tool restored by
Maik for next 6.0.0-beta2 release. Please test with current bundles from 

https://files.kde.org/digikam/

All files will be updated today morning.

Gilles Caulier
Comment 13 Maik Qualmann 2018-10-04 18:37:47 UTC
Git commit 5113d1474908592153a8e93957e145fb11e011db by Maik Qualmann.
Committed on 04/10/2018 at 18:36.
Pushed by mqualmann into branch 'master'.

update always the digikam timestamp and/not the modification date
The digiKam timestamp is also updated if no
metadata field is checked.
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +3    -8    core/app/main/digikamapp_tools.cpp
M  +10   -0    core/libs/database/coredb/coredb.cpp
M  +5    -0    core/libs/database/coredb/coredb.h
M  +14   -0    core/libs/database/item/imageinfo.cpp
M  +6    -0    core/libs/database/item/imageinfo.h
M  +23   -8    core/libs/database/utils/dio.cpp
M  +5    -0    core/libs/database/utils/dio.h
M  +3    -7    core/utilities/imageeditor/main/imagewindow_tools.cpp
M  +3    -7    core/utilities/lighttable/lighttablewindow_tools.cpp
M  +13   -34   core/utilities/timeadjust/timeadjustdialog.cpp
M  +3    -1    core/utilities/timeadjust/timeadjustdialog.h
M  +5    -0    core/utilities/timeadjust/timeadjusttask.cpp
M  +1    -0    core/utilities/timeadjust/timeadjusttask.h
M  +3    -0    core/utilities/timeadjust/timeadjustthread.cpp
M  +1    -0    core/utilities/timeadjust/timeadjustthread.h

https://commits.kde.org/digikam/5113d1474908592153a8e93957e145fb11e011db