Bug 399292

Summary: Video file datetime not shown correctly after editing
Product: [Applications] digikam Reporter: Jens <jens-bugs.kde.org>
Component: Plugin-Generic-TimeAdjustAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0.0
Sentry Crash Report:

Description Jens 2018-10-01 20:19:41 UTC
SUMMARY
see $SUBJECT

STEPS TO REPRODUCE
1. import mp4 file with file mtime != mp4 metadata "creation time"
2. correct time in Digikam using the right sidebar
3. open Geolocation editor

OBSERVED RESULT
datetime in Geolocation editor shows filename mtime
datetime in Digikam main view shows mp4 metadata datetime

EXPECTED RESULT
After editing (at least) all dates that are shown should be identical.

SOFTWARE VERSIONS: Kubuntu 18.04, Digikam 6.0-beta1 20180926xxxx
Comment 1 Maik Qualmann 2018-10-01 20:33:29 UTC
I can not reproduce it here. Geolocation Editor shows here the metadata creation date. Do you use sidecar files?

Maik
Comment 2 Jens 2018-10-02 12:46:51 UTC
Yes, I am using sidecars. And I have switched off updating the file metadata, I want my images to stay pristine.
Comment 3 Maik Qualmann 2018-10-02 14:58:58 UTC
What do you mean by "after editing"? Within digiKam? Or video is just imported and Geolocation Editor shows different creation date than the icon view?

Maik
Comment 4 Jens 2018-10-03 19:09:19 UTC
The datetime wasn't correct. I edited it using the right sidebar (Descriptions tab) and it was corrected in thumbnail view, but not in the geolocation editor tabular view.
Comment 5 Maik Qualmann 2018-10-03 19:53:39 UTC
Git commit 973b81b13b8c310066fe2f2f0d968461539cb523 by Maik Qualmann.
Committed on 03/10/2018 at 19:52.
Pushed by mqualmann into branch 'master'.

always use the date from the database for the Geolocation Editor
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +1    -2    core/libs/database/item/imagegps.cpp

https://commits.kde.org/digikam/973b81b13b8c310066fe2f2f0d968461539cb523