Bug 496389 - Tool to determin time difference from clock photo show diffent timestamp
Summary: Tool to determin time difference from clock photo show diffent timestamp
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-TimeAdjust (other bugs)
Version First Reported In: 8.5.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-17 18:53 UTC by e.hilgert
Modified: 2024-11-17 19:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.6.0
Sentry Crash Report:


Attachments
detailed descripton screenshot of behauvior (128.60 KB, image/png)
2024-11-17 18:53 UTC, e.hilgert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description e.hilgert 2024-11-17 18:53:54 UTC
Created attachment 175884 [details]
detailed descripton screenshot of behauvior

SUMMARY
In the "Adjust Time & Date" Tool, when using the "Determine Time Difference With Clock Photo" the wrong time difference is calculated. 

STEPS TO REPRODUCE
1. Load Clock Photo in the tool "Determine Time Difference With Clock Photo". 
2. See in the bottom, where you set the time from the photo is another time as the timestamp used by the "Adjust Time & Date" Tool
3. type in the time shown on the clock in the photo
4. The calculated difference of 2 hours (+something) is wrong (one hour to early)

OBSERVED RESULT
The time in "timestamp updated" collum shows another time, as the time of the clock entered in the tool

EXPECTED RESULT
the time in the "timestamp updated" collum should be the exact time entered for the clock photo

SOFTWARE/OS VERSIONS
Windows: 11 Pro / 23H2 / Build 22631.4460
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
When i took the photo, the camera was still configured in summer time, even though it was winter time. 
In the metadata from exiftool i can see a TimeZone of +2, but it was +1 at the time the picture was taken. 
So the  timestamp of the photo is about an hour later then it was. 
The difference calculation should result in a difference of about an hour, but it actualy shows a difference of about 2 hours.
Comment 1 Maik Qualmann 2024-11-17 19:26:40 UTC
Git commit d626126ee290760756f498fea5498990ae892daf by Maik Qualmann.
Committed on 17/11/2024 at 19:25.
Pushed by mqualmann into branch 'master'.

fix clock photo delta time calculation
FIXED-IN: 8.6.0

M  +1    -1    NEWS
M  +2    -1    core/libs/timeadjust/clockphotodialog.cpp

https://invent.kde.org/graphics/digikam/-/commit/d626126ee290760756f498fea5498990ae892daf