Bug 456604

Summary: Parse "file name timestamp" with template YYYY-MM-DD hh[hH]mm when adjusting time & date
Product: [Applications] digikam Reporter: Roberto <betokella>
Component: Plugin-Generic-TimeAdjustAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 7.7.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.8.0
Sentry Crash Report:

Description Roberto 2022-07-11 23:54:16 UTC
SUMMARY
I have a large library of images with file names following the template "YYYY-MM-DD hh[hH]mm IMG_XXXX". Not sure which utility was used in the past that used this template. But need to be able to adjust time & date based on the mentioned file name template

STEPS TO REPRODUCE
1.  Select an item. Example "2020-04-17 18h45 IMG_0001.JPG"
2.  Click on "Adjust Time & Date"
3.  Select "File name timestamp"

OBSERVED RESULT
The result (with the file name template mentioned above) is that the date is parsed correctly (2020-04-17) but not the time (ends up in 00:00:00)

EXPECTED RESULT
That the time in the mentioned format were also parsed correctly (18:45:00 in the example above)

SOFTWARE/OS VERSIONS
Windows:  Windows 10 19044.1766
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2022-07-12 06:12:04 UTC
Git commit ea36de10e55681b94a725320e67798de2e22846e by Maik Qualmann.
Committed on 12/07/2022 at 06:11.
Pushed by mqualmann into branch 'qt5-maintenance'.

add another variant to detect date and time from filename
FIXED-IN: 7.8.0

M  +1    -1    NEWS
M  +5    -0    core/libs/timeadjust/timeadjustcontainer.cpp

https://invent.kde.org/graphics/digikam/commit/ea36de10e55681b94a725320e67798de2e22846e